mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 23:28:08 +02:00
session-monitor: avoid an assertion failure if there's no session monitor
The constructor can bail out early, not setting monitor->sd.watch: (NetworkManager:373): GLib-CRITICAL **: 20:35:58.601: g_source_remove: assertion 'tag > 0' failed
This commit is contained in:
parent
9e7a324916
commit
121be232ad
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ st_sd_finalize (NMSessionMonitor *monitor)
|
|||
sd_login_monitor_unref (monitor->sd.monitor);
|
||||
monitor->sd.monitor = NULL;
|
||||
}
|
||||
g_source_remove (monitor->sd.watch);
|
||||
nm_clear_g_source (&monitor->sd.watch);
|
||||
}
|
||||
#endif /* SESSION_TRACKING_SYSTEMD */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue