mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dht_proxy_client: listener should not be stopped here
Moreover, when it's a subscribe, because the subscribe is direct
This commit is contained in:
1 parent
7fde8f63a8
commit
f9ffb8650a
1 file changed
+3
-2
@@ -1031,9 +1031,10 @@ DhtProxyClient::sendListen(const restinio::http_request_header_t header,
|
||||
opstate->ok.store(false);
|
||||
return;
|
||||
}
|
||||
if (json.size() == 0){ // it's the end
|
||||
opstate->stop.store(true);
|
||||
if (json.size() == 0) { // it's the end
|
||||
break;
|
||||
}
|
||||
|
||||
auto value = std::make_shared<Value>(json);
|
||||
if (cb){
|
||||
auto expired = json.get("expired", Json::Value(false)).asBool();
|
||||
|
||||
Reference in new issue
Block a user