diff options
Diffstat (limited to 'protocols/Tox/src/tox_core.cpp')
-rw-r--r-- | protocols/Tox/src/tox_core.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index f079917040..cff5d56c0d 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -1,5 +1,10 @@ #include "common.h"
+bool CToxProto::IsToxCoreInited()
+{
+ return tox != NULL;
+}
+
bool CToxProto::InitToxCore()
{
debugLogA("CToxProto::InitToxCore: initializing tox core");
@@ -91,6 +96,7 @@ bool CToxProto::InitToxCore() password = NULL;
}
tox_kill(tox);
+ tox = NULL;
}
return isProfileLoaded;
@@ -121,4 +127,5 @@ void CToxProto::UninitToxCore() password = NULL;
}
tox_kill(tox);
+ tox = NULL;
}
\ No newline at end of file |