mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
context: remove core listeners
This commit is contained in:
parent
e4a6782c48
commit
23a875e2bf
1 changed files with 8 additions and 0 deletions
|
|
@ -733,9 +733,17 @@ static void remote_state_changed(void *data, enum pw_remote_state old,
|
|||
|
||||
switch(state) {
|
||||
case PW_REMOTE_STATE_ERROR:
|
||||
if (c->core_proxy) {
|
||||
spa_hook_remove(&c->core_listener);
|
||||
c->core_proxy = NULL;
|
||||
}
|
||||
context_fail(c, PA_ERR_CONNECTIONTERMINATED);
|
||||
break;
|
||||
case PW_REMOTE_STATE_UNCONNECTED:
|
||||
if (c->core_proxy) {
|
||||
spa_hook_remove(&c->core_listener);
|
||||
c->core_proxy = NULL;
|
||||
}
|
||||
if (!c->disconnect)
|
||||
context_fail(c, PA_ERR_CONNECTIONTERMINATED);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue