From 666a961a16be6a92cccb0dbc0c0e6c20f8727838 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 2 Nov 2015 18:09:39 +0000 Subject: Tox: attempt to fix crash on IsOnline call git-svn-id: http://svn.miranda-ng.org/main/trunk@15671 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src') diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 51b0b13397..fa4c3866b8 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -2,7 +2,7 @@ bool CToxProto::IsOnline() { - return toxThread && toxThread->isConnected && m_iStatus >= ID_STATUS_ONLINE; + return toxThread && toxThread->tox && toxThread->isConnected && m_iStatus >= ID_STATUS_ONLINE; } void CToxProto::BootstrapNode(const char *address, int port, const char *hexKey) @@ -170,8 +170,8 @@ void CToxProto::PollingThread(void*) toxThread.Do(); } - UninitToxCore(&toxThread); toxThread.isConnected = false; + UninitToxCore(&toxThread); logger->Log(__FUNCTION__": leaving"); } \ No newline at end of file -- cgit v1.2.3