mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Kill hang processes in case of app quitting.
This commit is contained in:
@@ -550,6 +550,12 @@ void Manager::Private::checkFocusState() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Manager::Private::~Private() {
|
Manager::Private::~Private() {
|
||||||
|
if (_waitingDnd) {
|
||||||
|
_dnd.kill();
|
||||||
|
}
|
||||||
|
if (_waitingFocus) {
|
||||||
|
_focus.kill();
|
||||||
|
}
|
||||||
if (_clearingThread.joinable()) {
|
if (_clearingThread.joinable()) {
|
||||||
putClearTask(ClearFinish());
|
putClearTask(ClearFinish());
|
||||||
_clearingThread.join();
|
_clearingThread.join();
|
||||||
|
Reference in New Issue
Block a user