summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_network.cpp')
-rw-r--r--protocols/Tox/src/tox_network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp
index 13182139f1..bf5e54ccc2 100644
--- a/protocols/Tox/src/tox_network.cpp
+++ b/protocols/Tox/src/tox_network.cpp
@@ -289,10 +289,10 @@ void CToxProto::PollingThread(void*)
toxThread.Iterate();
}
- this->toxThread = NULL;
-
toxThread.Disconnect();
UninitToxCore(&toxThread);
+ this->toxThread = NULL;
+
debugLogA(__FUNCTION__": leaving");
} \ No newline at end of file