From 1c9acfe001c98515dadb9c2b9317261b8a10a1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Sat, 21 Apr 2018 15:02:43 -0400 Subject: [PATCH] proxy client: call opFailed on failure --- src/dht_proxy_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index 22aa5e8f..6874d6cd 100644 --- a/src/dht_proxy_client.cpp +++ b/src/dht_proxy_client.cpp @@ -1045,7 +1045,7 @@ DhtProxyClient::resubscribe(const InfoHash& key, Listener& listener) } }, settings).get(); auto& s = *state; - if (s.ok and not s.cancel) + if (not s.ok and not s.cancel) opFailed(); }); #endif -- GitLab