From df0c81e683bc2f4ab83fa9938ef51b321ddbcbd4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 19 Feb 2015 08:29:41 +0000 Subject: fixed double decrementation git-svn-id: http://svn.miranda-ng.org/main/trunk@12194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols') 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)) -- cgit v1.2.3