Skip to content

Commit

Permalink
Merge pull request #448 from AmarOk1412/fix/resubscribe
Browse files Browse the repository at this point in the history
proxy_client: reset correct opstate
  • Loading branch information
seva authored Oct 1, 2019
2 parents 55c56a5 + 8ec0ab0 commit 739f4d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dht_proxy_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,8 @@ DhtProxyClient::resubscribe(const InfoHash& key, const size_t token, Listener& l
if (listener.request){
listener.request.reset();
}
opstate.reset(new OperationState());
opstate->stop = false;
opstate->ok = true;

restinio::http_request_header_t header;
header.method(restinio::http_method_subscribe());
Expand Down

0 comments on commit 739f4d0

Please sign in to comment.