diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-18 05:28:57 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-18 05:28:57 +0000 |
commit | e31843a10f97085c3e55c873f2c28af6fdb2f35e (patch) | |
tree | b6f6ff60aeed02a388dc0ead25316ca2e02e7df4 /protocols/Tox | |
parent | 5c0d045e9884f1f083b3fc1116d8d0219b935ffa (diff) |
Tox: fixed logging
git-svn-id: http://svn.miranda-ng.org/main/trunk@12177 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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))
{
|