Skip to content
Snippets Groups Projects
Commit 26b71ab9 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

proxyclient: do not play with stop when resubscribing

At this point we do not care for the request. Subscribes are
instantaneous, so the request will be terminated at this point.
Changing the stop status can cause some push notifications to be
dropped if coming at this moment.
parent 04a78445
Branches
Tags
No related merge requests found
......@@ -1265,11 +1265,7 @@ DhtProxyClient::resubscribe(const InfoHash& key, const size_t token, Listener& l
logger_->d("[proxy:client] [resubscribe] [search %s]", key.to_c_str());
auto opstate = listener.opstate;
opstate->stop = true;
if (listener.request){
listener.request.reset();
}
opstate->stop = false;
listener.request.reset(); // This will update ok to false
opstate->ok = true;
restinio::http_request_header_t header;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment