daemonManager: wait for daemon stop on app close

This commit is contained in:
Jaquee 2016-11-26 13:41:34 +01:00
parent f62bb687df
commit d9f4ab45e2
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39
1 changed files with 4 additions and 0 deletions

View File

@ -136,4 +136,8 @@ void DaemonManager::closing()
{
qDebug() << __FUNCTION__;
stop();
// Wait for daemon to stop before exiting (max 10 secs)
if(initialized){
m_daemon->waitForFinished(10000);
}
}