Browse Source

Prevent possible deadlock on exit

pull/1049/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
9b9b6bae99
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 9
      src/core.cpp

9
src/core.cpp

@ -99,10 +99,11 @@ Core::~Core() @@ -99,10 +99,11 @@ Core::~Core()
toxTimer->stop();
coreThread->exit(0);
qApp->processEvents();
coreThread->wait();
if (coreThread->isRunning())
coreThread->terminate();
while (coreThread->isRunning())
{
qApp->processEvents();
coreThread->wait(500);
}
if (tox)
{

Loading…
Cancel
Save