Philipp Hörist pushed to branch master at gajim / gajim
Commits:
9cccd982 by Philipp Hörist at 2026-09-01T19:13:02+02:00
imprv: Shutdown Task Manager
- - - - -
2 changed files:
- gajim/common/application.py
- gajim/common/task_manager.py
Changes:
=====================================
gajim/common/application.py
=====================================
@@ -265,6 +265,7 @@ def _shutdown_core(self) -> None:
app.settings.save()
app.settings.shutdown()
app.pulse_manager.shutdown()
+ app.task_manager.shutdown()
self.end_profiling()
configpaths.cleanup_temp()
=====================================
gajim/common/task_manager.py
=====================================
@@ -71,6 +71,11 @@ def add_task(self, task: Task) -> None:
if self._timeout is None:
self._start_worker()
+ def shutdown(self) -> None:
+ log.warning("Shutdown Task Manager")
+ if self._timeout is not None:
+ GLib.source_remove(self._timeout)
+
@functools.total_ordering
class Task: # noqa: PLW1641
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9cccd982774320fe7ea2121adea564312cf7fbe2
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/9cccd982774320fe7ea2121adea564312cf7fbe2
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]