diff options
-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 |