Cleanup compositor deadcode (#2657)

* Remove dead code as it is a part of CCompositor::cleanup

* Unify sd_notify logic with Compositor lifetime
This commit is contained in:
Mykola Perehudov
2023-07-06 16:24:49 +03:00
committed by GitHub
parent bbedb065e1
commit 41358c6fb5
2 changed files with 5 additions and 16 deletions

View File

@@ -310,6 +310,11 @@ void CCompositor::cleanup() {
m_bIsShuttingDown = true;
#ifdef USES_SYSTEMD
if (sd_booted() > 0)
sd_notify(0, "STOPPING=1");
#endif
// unload all remaining plugins while the compositor is
// still in a normal working state.
g_pPluginSystem->unloadAllPlugins();