diff options
author | aunsane <aunsane@gmail.com> | 2017-03-15 22:00:01 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-15 22:00:32 +0300 |
commit | 885176b56fddde5e2be107b595b5bf3625e3c1be (patch) | |
tree | 176b3ecec7cfe2e5c9591137eb8e94ace69dc8b9 /protocols/Tox | |
parent | cdd182a1dd3b96901ea80b50e730f2e5c41d4b48 (diff) |
Tox: reset isTerminated variable (fixes #749)
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_connection.cpp | 1 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_connection.cpp b/protocols/Tox/src/tox_connection.cpp index 2d78fd86fe..89ce9a2e70 100644 --- a/protocols/Tox/src/tox_connection.cpp +++ b/protocols/Tox/src/tox_connection.cpp @@ -123,6 +123,7 @@ void CToxProto::PollingThread(void*) UninitToxCore(toxThread.Tox()); this->toxThread = NULL; + hPollingThread = NULL; debugLogA(__FUNCTION__": leaving"); }
\ No newline at end of file diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 8090043ffe..2e67a88055 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -174,8 +174,8 @@ int CToxProto::SetStatus(int iNewStatus) if (old_status == ID_STATUS_OFFLINE && !IsOnline())
{
// login
+ isTerminated = false;
m_iStatus = ID_STATUS_CONNECTING;
-
hPollingThread = ForkThreadEx(&CToxProto::PollingThread, NULL, NULL);
}
else
|