diff options
author | George Hazan <george.hazan@gmail.com> | 2016-06-02 07:59:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-06-02 07:59:12 +0000 |
commit | da7fcc0a2555083d0beebf90808787cc0b299d2e (patch) | |
tree | eeb8b1b9b524d33fdd14caca022c4d68ede76bdd /protocols/Tox | |
parent | 90a51ebf9ae94155cf0b511695a2d793a74186f9 (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.cpp | 2 |
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())
|