terminate on close

This commit is contained in:
Miodrag Milanovic 2018-06-22 12:24:50 +02:00
parent 3cd12e3671
commit 5cb893aebd

View File

@ -61,6 +61,8 @@ TaskManager::TaskManager(Context *ctx) : toTerminate(false)
TaskManager::~TaskManager()
{
if (workerThread.isRunning())
terminate_thread();
workerThread.quit();
workerThread.wait();
}