Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Julian Bouzas
WirePlumber
Commits
9b255922
Commit
9b255922
authored
Dec 06, 2019
by
Julian Bouzas
Browse files
core: remove unnecessary idle callback when connecting
parent
8bdadd5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/wp/core.c
View file @
9b255922
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment