diff options
Diffstat (limited to 'protocols/Tox/src/tox_account.cpp')
-rw-r--r-- | protocols/Tox/src/tox_account.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/protocols/Tox/src/tox_account.cpp b/protocols/Tox/src/tox_account.cpp index f78f8b24a2..6ca734d0e4 100644 --- a/protocols/Tox/src/tox_account.cpp +++ b/protocols/Tox/src/tox_account.cpp @@ -1,11 +1,6 @@ #include "common.h"
#include "tox_bootstrap.h"
-bool CToxProto::IsOnline()
-{
- return isConnected && m_iStatus > ID_STATUS_OFFLINE;
-}
-
void CToxProto::InitToxCore()
{
Tox_Options options = { 0 };
@@ -21,7 +16,7 @@ void CToxProto::InitToxCore() {
if (nlus.proxyType == PROXYTYPE_SOCKS4 || nlus.proxyType == PROXYTYPE_SOCKS5)
{
- debugLogA("Setting socks user proxy config");
+ debugLogA("CToxProto::InitToxCore: Setting socks user proxy config");
options.proxy_enabled = 1;
strcpy(&options.proxy_address[0], nlus.szProxyServer);
options.proxy_port = nlus.wProxyPort;
@@ -50,13 +45,15 @@ void CToxProto::InitToxCore() void CToxProto::UninitToxCore()
{
- isTerminated = isConnected = false;
-
SaveToxData();
-
tox_kill(tox);
}
+bool CToxProto::IsOnline()
+{
+ return isConnected && m_iStatus > ID_STATUS_OFFLINE;
+}
+
void CToxProto::DoBootstrap()
{
static int j = 0;
|