mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-04-25 04:00:39 +02:00
core: remove unnecessary idle callback when connecting
This commit is contained in:
parent
8bdadd5a71
commit
9b255922ff
1 changed files with 1 additions and 13 deletions
|
|
@ -522,23 +522,11 @@ wp_core_get_pw_remote (WpCore * self)
|
|||
return self->pw_remote;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
connect_in_idle (WpCore *self)
|
||||
{
|
||||
pw_remote_connect (self->pw_remote);
|
||||
return G_SOURCE_REMOVE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
wp_core_connect (WpCore *self)
|
||||
{
|
||||
g_autoptr (GSource) source = NULL;
|
||||
|
||||
g_return_val_if_fail (WP_IS_CORE (self), FALSE);
|
||||
|
||||
source = wp_core_idle_add (self, (GSourceFunc) connect_in_idle, self);
|
||||
|
||||
return TRUE;
|
||||
return pw_remote_connect (self->pw_remote) >= 0;
|
||||
}
|
||||
|
||||
WpRemoteState
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue