dht: add synced status

This commit is contained in:
Adrien Béraud committed 2019-02-19 01:59:59 -05:00
1 parent 39e69f813c
commit 35c6a57526
7 files changed
+93 -37

No files matched your search

+1 -1
View File
@@ -668,7 +668,7 @@ DhtProxyClient::listen(const InfoHash& key, ValueCallback cb, Value::Filter filt
it = searches_.emplace(key, ProxySearch{}).first;
}
auto query = std::make_shared<Query>(Select{}, where);
auto token = it->second.ops.listen(cb, query, filter, [&](Sp<Query> /*q*/, ValueCallback vcb){
auto token = it->second.ops.listen(cb, query, filter, [&](Sp<Query> /*q*/, ValueCallback vcb, SyncCallback /*scb*/){
return doListen(key, vcb, filter);
});
return token;