|
|
|
@ -77,12 +77,6 @@ Core::Core(QThread *CoreThread, Profile& profile) :
@@ -77,12 +77,6 @@ Core::Core(QThread *CoreThread, Profile& profile) :
|
|
|
|
|
|
|
|
|
|
void Core::deadifyTox() |
|
|
|
|
{ |
|
|
|
|
if (QThread::currentThread() != coreThread) |
|
|
|
|
{ |
|
|
|
|
QMetaObject::invokeMethod(this, "deadifyTox", Qt::BlockingQueuedConnection); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (av) |
|
|
|
|
{ |
|
|
|
|
delete av; |
|
|
|
@ -105,9 +99,6 @@ Core::~Core()
@@ -105,9 +99,6 @@ Core::~Core()
|
|
|
|
|
QMetaObject::invokeMethod(this, "killTimers", Qt::BlockingQueuedConnection, |
|
|
|
|
Q_ARG(bool, false)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
deadifyTox(); |
|
|
|
|
|
|
|
|
|
coreThread->exit(0); |
|
|
|
|
while (coreThread->isRunning()) |
|
|
|
|
{ |
|
|
|
@ -115,6 +106,8 @@ Core::~Core()
@@ -115,6 +106,8 @@ Core::~Core()
|
|
|
|
|
coreThread->wait(500); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
deadifyTox(); |
|
|
|
|
|
|
|
|
|
Audio& audio = Audio::getInstance(); |
|
|
|
|
audio.closeInput(); |
|
|
|
|
audio.closeOutput(); |
|
|
|
|