mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
Avoid locking on local server shutdown
This commit is contained in:
parent
d82564d84c
commit
d61d9c98a0
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