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

proxy: set clientId to listener

clientId was not properly set. so every time someone launch a node
and do a listen on a hash, a new listener is generated and it results
by flooding the node of push notifications.
parent 0a04a7f2
No related branches found
No related tags found
No related merge requests found
...@@ -391,6 +391,7 @@ DhtProxyServer::subscribe(const std::shared_ptr<restbed::Session>& session) ...@@ -391,6 +391,7 @@ DhtProxyServer::subscribe(const std::shared_ptr<restbed::Session>& session)
} }
listeners->second.emplace_back(Listener{}); listeners->second.emplace_back(Listener{});
auto& listener = listeners->second.back(); auto& listener = listeners->second.back();
listener.clientId = clientId;
// New listener // New listener
pushListener->second.isAndroid = isAndroid; pushListener->second.isAndroid = isAndroid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment