From e31843a10f97085c3e55c873f2c28af6fdb2f35e Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 18 Feb 2015 05:28:57 +0000 Subject: Tox: fixed logging git-svn-id: http://svn.miranda-ng.org/main/trunk@12177 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index a734d08ee7..19d90b719b 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -80,8 +80,11 @@ void CToxProto::CheckConnection(int &retriesCount) { if (tox_isconnected(tox)) { - debugLogA("CToxProto::CheckConnection: restored connection with DHT"); - retriesCount = TOX_MAX_DISCONNECT_RETRIES; + if (retriesCount < TOX_MAX_DISCONNECT_RETRIES) + { + debugLogA("CToxProto::CheckConnection: restored connection with DHT"); + retriesCount = TOX_MAX_DISCONNECT_RETRIES; + } } else if (!(--retriesCount)) { -- cgit v1.2.3