core: remove debugging delay from new user connection handling

Introduced by 25e758c770 when ensuring
that the code that waits for connections to become advertised by teh
user settings service worked correctly.
This commit is contained in:
Dan Williams
2010-06-22 10:26:13 -07:00
parent 1b49f941a6
commit 3ec6ffe85f

View File

@@ -1190,33 +1190,10 @@ user_proxy_destroyed_cb (DBusGProxy *proxy, NMManager *self)
user_proxy_cleanup (self, TRUE); 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 static void
user_new_connection_cb (DBusGProxy *proxy, const char *path, gpointer user_data) user_new_connection_cb (DBusGProxy *proxy, const char *path, gpointer user_data)
{ {
Foo *f = g_malloc0 (sizeof (Foo)); user_internal_new_connection_cb (proxy, path, NM_MANAGER (user_data), NULL);
f->proxy = proxy;
f->path = g_strdup (path);
f->manager = NM_MANAGER (user_data);
g_timeout_add_seconds (6, blah, f);
} }
static gboolean static gboolean