From bce41ecd692ec59a2f859ffe720b795ea1659f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Mon, 1 Jul 2019 01:12:21 -0400 Subject: [PATCH] proxy client: fix build with push notifications --- src/dht_proxy_client.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index 04505977..6467fa64 100644 --- a/src/dht_proxy_client.cpp +++ b/src/dht_proxy_client.cpp @@ -1052,14 +1052,13 @@ DhtProxyClient::pushNotificationReceived(const std::map>& vals) { return cb(vals, false); }, [cb, oldValues](bool /*ok*/) { // Decrement old values refcount to expire values not present in the new list cb(oldValues, true); - }, std::move(filter)); + }); } else { std::stringstream ss(expired->second); std::vector ids; @@ -1121,9 +1120,8 @@ DhtProxyClient::resubscribe(const InfoHash& key, Listener& listener) listener.req = req; scheduler.edit(listener.refreshJob, scheduler.time() + proxy::OP_TIMEOUT - proxy::OP_MARGIN); auto vcb = listener.cb; - auto filter = listener.filter; - listener.thread = std::thread([this, req, vcb, filter, state]() { - sendListen(req, vcb, filter, state, ListenMethod::RESUBSCRIBE); + listener.thread = std::thread([this, req, vcb, state]() { + sendListen(req, vcb, state, ListenMethod::RESUBSCRIBE); }); #else (void) key;