Skip to content
Snippets Groups Projects
Unverified Commit 95f1d59a authored by Sébastien Blin's avatar Sébastien Blin
Browse files

proxy: add comment for refresh job

parent f98658f1
No related branches found
No related tags found
No related merge requests found
...@@ -699,6 +699,7 @@ DhtProxyClient::doListen(const InfoHash& key, ValueCallback cb, Value::Filter fi ...@@ -699,6 +699,7 @@ DhtProxyClient::doListen(const InfoHash& key, ValueCallback cb, Value::Filter fi
}; };
if (not deviceKey_.empty()) if (not deviceKey_.empty())
// Relaunch push listeners even if a timeout is not received (if the proxy crash for any reason)
l->second.refreshJob = scheduler.add(scheduler.time() + proxy::OP_TIMEOUT - proxy::OP_MARGIN, [this, key, token, state] { l->second.refreshJob = scheduler.add(scheduler.time() + proxy::OP_TIMEOUT - proxy::OP_MARGIN, [this, key, token, state] {
if (state->cancel) if (state->cancel)
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment