Avoid locking on local server shutdown

This commit is contained in:
Fabio Bas 2016-07-19 11:32:00 +02:00
parent d82564d84c
commit d61d9c98a0
3 changed files with 28 additions and 22 deletions

View file

@ -11,6 +11,10 @@ LocalServer::LocalServer(QObject *parent)
LocalServer::~LocalServer()
{
// LocalServer is single threaded so it doesn't need locks on this
while (!clients.isEmpty())
clients.first()->prepareDestroy();
prepareDestroy();
}