mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-21 08:37:08 +02:00
Kill hang processes in case of app quitting.
This commit is contained in:
parent
d91b75b8f8
commit
f03935ad9a
1 changed files with 6 additions and 0 deletions
|
@ -550,6 +550,12 @@ void Manager::Private::checkFocusState() {
|
|||
}
|
||||
|
||||
Manager::Private::~Private() {
|
||||
if (_waitingDnd) {
|
||||
_dnd.kill();
|
||||
}
|
||||
if (_waitingFocus) {
|
||||
_focus.kill();
|
||||
}
|
||||
if (_clearingThread.joinable()) {
|
||||
putClearTask(ClearFinish());
|
||||
_clearingThread.join();
|
||||
|
|
Loading…
Add table
Reference in a new issue