From eb2eda4408667395ffb73ec94fc5a02f311b66f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20=C5=A0imerda?= Date: Sat, 27 Dec 2014 01:29:34 +0100 Subject: [PATCH] main: don't initialize the session monitor The session monitor will be initialized as soon as it's needed. Acked-By: Thomas Haller --- src/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.c b/src/main.c index b3206fb44e..f91d579d80 100644 --- a/src/main.c +++ b/src/main.c @@ -211,7 +211,6 @@ main (int argc, char *argv[]) gs_unref_object NMFirewallManager *fw_mgr = NULL; gs_unref_object NMSettings *settings = NULL; gs_unref_object NMConfig *config = NULL; - gs_unref_object NMSessionMonitor *session_monitor = NULL; GError *error = NULL; gboolean wrote_pidfile = FALSE; char *bad_domains = NULL; @@ -440,10 +439,6 @@ main (int argc, char *argv[]) fw_mgr = nm_firewall_manager_get (); g_assert (fw_mgr != NULL); - /* Initialize session monitor */ - session_monitor = nm_session_monitor_get (); - g_assert (session_monitor != NULL); - if (!nm_dbus_manager_get_connection (dbus_mgr)) { #if HAVE_DBUS_GLIB_100 nm_log_warn (LOGD_CORE, "Failed to connect to D-Bus; only private bus is available");