proxy client: fix build when push notifications are disabled

This commit is contained in:
Adrien Béraud committed 2018-01-13 16:16:19 -05:00
1 parent ca693a6ac1
commit 15e3696b88
9 files changed
+30 -15

No files matched your search

+4 -1
View File
@@ -441,8 +441,11 @@ DhtProxyClient::listen(const InfoHash& key, GetCallback cb, Value::Filter&& filt
if (deviceKey_.empty()) {
std::chrono::milliseconds timeout(std::numeric_limits<int>::max());
settings->set_connection_timeout(timeout); // Avoid the client to close the socket after 5 seconds.
} else
}
#if OPENDHT_PUSH_NOTIFICATIONS
else
fillBodyToGetToken(req);
#endif
struct State {
std::atomic_bool ok {true};