From 0a5d4c1026a8146e6213e531f22b7ec32d4fc61e Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 27 Apr 2016 18:09:39 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@16781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 90ce85754b..d3a88056b7 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -188,6 +188,8 @@ void CToxProto::PollingThread(void*) toxThread.Iterate(); } + this->toxThread = NULL; + toxThread.Disconnect(); UninitToxCore(&toxThread); -- cgit v1.2.3