summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Šimerda <psimerda@redhat.com>2014-12-27 01:29:34 +0100
committerPavel Šimerda <psimerda@redhat.com>2015-01-05 18:39:41 +0100
commiteb2eda4408667395ffb73ec94fc5a02f311b66f5 (patch)
tree5d43d74fdbc6a477b67fb94899875ccc06f4ecbb
parent4a9eaa190fbfd82e4f285e4fde0c0940a0a50a1c (diff)
downloadNetworkManager-eb2eda4408667395ffb73ec94fc5a02f311b66f5.tar.gz
main: don't initialize the session monitor
The session monitor will be initialized as soon as it's needed. Acked-By: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/main.c5
1 files changed, 0 insertions, 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");