summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-02-19 08:29:41 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-02-19 08:29:41 +0000
commitdf0c81e683bc2f4ab83fa9938ef51b321ddbcbd4 (patch)
treeccd53bb1d350025421d576da7f829b8c8e9e4082
parentffeccf671b31c2f51c06959078c97a689b4144ad (diff)
fixed double decrementation
git-svn-id: http://svn.miranda-ng.org/main/trunk@12194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Tox/src/tox_network.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp
index 3e4b9ed52c..588a41a8fc 100644
--- a/protocols/Tox/src/tox_network.cpp
+++ b/protocols/Tox/src/tox_network.cpp
@@ -87,8 +87,9 @@ void CToxProto::CheckConnection(int &retriesCount)
}
else
{
- if (--retriesCount == TOX_MAX_DISCONNECT_RETRIES - 1)
+ if (retriesCount == TOX_MAX_DISCONNECT_RETRIES)
{
+ retriesCount --;
BootstrapNodes();
}
else if (!(--retriesCount))