mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-24 23:36:01 -05: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
|
|
@ -1021,6 +1021,13 @@ MainWindow::~MainWindow()
|
|||
trayIcon->deleteLater();
|
||||
}
|
||||
|
||||
if (cardUpdateProcess) {
|
||||
cardUpdateProcess->disconnect(this);
|
||||
cardUpdateProcess->terminate();
|
||||
cardUpdateProcess->waitForFinished(1000);
|
||||
cardUpdateProcess = nullptr;
|
||||
}
|
||||
|
||||
client->deleteLater();
|
||||
clientThread->wait();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user