From 885176b56fddde5e2be107b595b5bf3625e3c1be Mon Sep 17 00:00:00 2001 From: aunsane Date: Wed, 15 Mar 2017 22:00:01 +0300 Subject: Tox: reset isTerminated variable (fixes #749) --- protocols/Tox/src/tox_connection.cpp | 1 + protocols/Tox/src/tox_proto.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Tox') 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 -- cgit v1.2.3