summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_network.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-10-30 17:58:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-10-30 17:58:45 +0000
commit75d27e475943eafbcb52e9a795554358c9348fbd (patch)
treec809bfe3d298f81633e22cea62a9336b22e99237 /protocols/Tox/src/tox_network.cpp
parentc0bf2d57a2b9ed3bb11eb6a4c499629b7ce8ba98 (diff)
Tox: fixed profile creation and import
git-svn-id: http://svn.miranda-ng.org/main/trunk@15654 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_network.cpp')
-rw-r--r--protocols/Tox/src/tox_network.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp
index 3e1b440595..51b0b13397 100644
--- a/protocols/Tox/src/tox_network.cpp
+++ b/protocols/Tox/src/tox_network.cpp
@@ -151,9 +151,9 @@ void CToxProto::PollingThread(void*)
logger->Log(__FUNCTION__": entering");
- if (!InitToxCore())
+ if (!InitToxCore(&toxThread))
{
- UninitToxCore();
+ UninitToxCore(&toxThread);
SetStatus(ID_STATUS_OFFLINE);
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGINERR_WRONGPASSWORD);
logger->Log(__FUNCTION__": leaving");
@@ -170,7 +170,7 @@ void CToxProto::PollingThread(void*)
toxThread.Do();
}
- UninitToxCore();
+ UninitToxCore(&toxThread);
toxThread.isConnected = false;
logger->Log(__FUNCTION__": leaving");