|
|
|
@ -30,6 +30,7 @@
@@ -30,6 +30,7 @@
|
|
|
|
|
#include <tox/tox.h> |
|
|
|
|
|
|
|
|
|
#include <ctime> |
|
|
|
|
#include <cassert> |
|
|
|
|
#include <limits> |
|
|
|
|
#include <functional> |
|
|
|
|
|
|
|
|
@ -103,8 +104,8 @@ Core::~Core()
@@ -103,8 +104,8 @@ Core::~Core()
|
|
|
|
|
{ |
|
|
|
|
qDebug() << "Deleting Core"; |
|
|
|
|
|
|
|
|
|
profile.saveToxSave(); |
|
|
|
|
toxTimer->stop(); |
|
|
|
|
QMetaObject::invokeMethod(this, "stopTimers", Qt::BlockingQueuedConnection); |
|
|
|
|
delete toxTimer; |
|
|
|
|
coreThread->exit(0); |
|
|
|
|
while (coreThread->isRunning()) |
|
|
|
|
{ |
|
|
|
@ -1238,3 +1239,9 @@ void Core::resetCallSources()
@@ -1238,3 +1239,9 @@ void Core::resetCallSources()
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Core::stopTimers() |
|
|
|
|
{ |
|
|
|
|
assert(QThread::currentThread() == coreThread); |
|
|
|
|
toxTimer->stop(); |
|
|
|
|
} |
|
|
|
|