mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
miscellaneous refactors (#4521)
This commit is contained in:
parent
994704d353
commit
ae9b8b8f34
8 changed files with 32 additions and 50 deletions
|
|
@ -206,8 +206,9 @@ Servatrice::~Servatrice()
|
|||
|
||||
// clients live in other threads, we need to lock them
|
||||
clientsLock.lockForRead();
|
||||
for (auto client : clients)
|
||||
for (auto *client : clients) {
|
||||
QMetaObject::invokeMethod(client, "prepareDestroy", Qt::QueuedConnection);
|
||||
}
|
||||
clientsLock.unlock();
|
||||
|
||||
// client destruction is asynchronous, wait for all clients to be gone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue