summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-06-02 07:59:12 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-06-02 07:59:12 +0000
commitda7fcc0a2555083d0beebf90808787cc0b299d2e (patch)
treeeeb8b1b9b524d33fdd14caca022c4d68ede76bdd /protocols/Tox
parent90a51ebf9ae94155cf0b511695a2d793a74186f9 (diff)
crash fix, if Tox incremented the connecting attempt number
git-svn-id: http://svn.miranda-ng.org/main/trunk@16902 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/tox_proto.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp
index f73e776f0d..ef14dc0b0a 100644
--- a/protocols/Tox/src/tox_proto.cpp
+++ b/protocols/Tox/src/tox_proto.cpp
@@ -168,7 +168,7 @@ int CToxProto::SetStatus(int iNewStatus)
return 0;
}
- if (old_status == ID_STATUS_CONNECTING)
+ if (old_status >= ID_STATUS_CONNECTING && old_status < ID_STATUS_OFFLINE)
return 0;
if (old_status == ID_STATUS_OFFLINE && !IsOnline())