diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-02 18:09:39 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-02 18:09:39 +0000 |
commit | 666a961a16be6a92cccb0dbc0c0e6c20f8727838 (patch) | |
tree | 61cbf945e229100a9a1676bc4f986b7f1c314a2b /protocols | |
parent | 176c60a74e2bc9fb58fc8300bec3625e87fcc623 (diff) |
Tox: attempt to fix crash on IsOnline call
git-svn-id: http://svn.miranda-ng.org/main/trunk@15671 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |