mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
For the automatic card database update process, disconnect signals, terminate and wait for it to finish on window_main destruction. (#6216)
Took 1 minute Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
7c31197b78
commit
015570c833
1 changed files with 7 additions and 0 deletions
|
|
@ -1021,6 +1021,13 @@ MainWindow::~MainWindow()
|
||||||
trayIcon->deleteLater();
|
trayIcon->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cardUpdateProcess) {
|
||||||
|
cardUpdateProcess->disconnect(this);
|
||||||
|
cardUpdateProcess->terminate();
|
||||||
|
cardUpdateProcess->waitForFinished(1000);
|
||||||
|
cardUpdateProcess = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
client->deleteLater();
|
client->deleteLater();
|
||||||
clientThread->wait();
|
clientThread->wait();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue