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.
This commit is contained in:
Sébastien Blin committed 2018-04-20 16:19:03 -04:00
1 parent 0a04a7f28d
commit 37ef1c2cff
1 file changed
+1
+1
View File
@@ -391,6 +391,7 @@ DhtProxyServer::subscribe(const std::shared_ptr<restbed::Session>& session)
}
listeners->second.emplace_back(Listener{});
auto& listener = listeners->second.back();
listener.clientId = clientId;
// New listener
pushListener->second.isAndroid = isAndroid;