From da7fcc0a2555083d0beebf90808787cc0b299d2e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Jun 2016 07:59:12 +0000 Subject: 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 --- protocols/Tox/src/tox_proto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Tox/src') 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()) -- cgit v1.2.3