From 95f1d59a7f38cf9f9d1a5bc5e7896b64832c65c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Mon, 30 Apr 2018 10:42:39 -0400 Subject: [PATCH] proxy: add comment for refresh job --- src/dht_proxy_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index 41d086b1..338c07bd 100644 --- a/src/dht_proxy_client.cpp +++ b/src/dht_proxy_client.cpp @@ -699,6 +699,7 @@ DhtProxyClient::doListen(const InfoHash& key, ValueCallback cb, Value::Filter fi }; 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] { if (state->cancel) return; -- GitLab