From 3ec6ffe85fae4f8c184e567c9de1a37db903aee0 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 22 Jun 2010 10:26:13 -0700 Subject: [PATCH] core: remove debugging delay from new user connection handling Introduced by 25e758c77041bec8014a4f28333dd9ccd559487e when ensuring that the code that waits for connections to become advertised by teh user settings service worked correctly. --- src/nm-manager.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/nm-manager.c b/src/nm-manager.c index 31628f876..1e94f0128 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -1190,33 +1190,10 @@ user_proxy_destroyed_cb (DBusGProxy *proxy, NMManager *self) user_proxy_cleanup (self, TRUE); } -typedef struct { - DBusGProxy *proxy; - char *path; - NMManager *manager; -} Foo; - -static gboolean -blah (gpointer user_data) -{ - Foo *f = user_data; - - user_internal_new_connection_cb (f->proxy, f->path, f->manager, NULL); - g_free (f->path); - g_free (f); - return FALSE; -} - static void user_new_connection_cb (DBusGProxy *proxy, const char *path, gpointer user_data) { - Foo *f = g_malloc0 (sizeof (Foo)); - - f->proxy = proxy; - f->path = g_strdup (path); - f->manager = NM_MANAGER (user_data); - - g_timeout_add_seconds (6, blah, f); + user_internal_new_connection_cb (proxy, path, NM_MANAGER (user_data), NULL); } static gboolean