Skip to content
Snippets Groups Projects
Commit 9b255922 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

core: remove unnecessary idle callback when connecting

parent 8bdadd5a
No related branches found
No related tags found
No related merge requests found
...@@ -522,23 +522,11 @@ wp_core_get_pw_remote (WpCore * self) ...@@ -522,23 +522,11 @@ wp_core_get_pw_remote (WpCore * self)
return self->pw_remote; return self->pw_remote;
} }
static gboolean
connect_in_idle (WpCore *self)
{
pw_remote_connect (self->pw_remote);
return G_SOURCE_REMOVE;
}
gboolean gboolean
wp_core_connect (WpCore *self) wp_core_connect (WpCore *self)
{ {
g_autoptr (GSource) source = NULL;
g_return_val_if_fail (WP_IS_CORE (self), FALSE); g_return_val_if_fail (WP_IS_CORE (self), FALSE);
return pw_remote_connect (self->pw_remote) >= 0;
source = wp_core_idle_add (self, (GSourceFunc) connect_in_idle, self);
return TRUE;
} }
WpRemoteState WpRemoteState
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment