diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Tox/src/tox_core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index bcd8ade298..5cb7e90cb6 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -51,6 +51,9 @@ bool CToxProto::InitToxCore() if (LoadToxProfile(options))
{
+ if (toxThread == NULL)
+ return false;
+
TOX_ERR_NEW initError;
toxThread->tox = tox_new(options, &initError);
if (initError != TOX_ERR_NEW_OK)
|