summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Tox/src/tox_network.cpp2
1 files changed, 2 insertions, 0 deletions
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);