2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 06:07:45 +00:00

Kill hang processes in case of app quitting.

This commit is contained in:
John Preston 2024-05-24 13:57:42 +04:00
parent d91b75b8f8
commit f03935ad9a

View File

@ -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();