diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index cceb64c8e8df6b8e9d93c0714f1a3d2f1109177d..f713d4b39138a49f8a6e8aa2b3c693d478a88de0 100644 --- a/src/dht_proxy_client.cpp +++ b/src/dht_proxy_client.cpp @@ -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;