Skip to content
Snippets Groups Projects
Unverified Commit 0a04a7f2 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

proxy: unsubscribe is now valid with token equals 0

Because we now have one listener for each client by hash, the token
is unnecessary here. Moreover, this check is invalid cause we use
a token equal to 0.
parent b47a85fe
No related branches found
No related tags found
No related merge requests found
......@@ -461,7 +461,6 @@ DhtProxyServer::unsubscribe(const std::shared_ptr<restbed::Session>& session)
auto pushToken = root["key"].asString();
if (pushToken.empty()) return;
auto token = unpackId(root, "token");
if (token == 0) return;
cancelPushListen(pushToken, infoHash, token);
s->close(restbed::OK);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment