diff options
Diffstat (limited to 'protocols/Tox/src')
-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
|