mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 18:43:55 -07:00
Merge pull request #2096 from ctrlaltca/fix_2091
Fix infinite loop on local game close
This commit is contained in:
commit
2cbfc5a8e6
3 changed files with 28 additions and 22 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue