Merge pull request #2096 from ctrlaltca/fix_2091

Fix infinite loop on local game close
This commit is contained in:
ctrlaltca 2016-07-24 12:29:03 +02:00 committed by GitHub
commit 2cbfc5a8e6
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();
}