mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
pipewiresrc: improve remote connection errors
This commit is contained in:
parent
a003d1a39f
commit
629f824b91
5 changed files with 27 additions and 24 deletions
|
|
@ -428,8 +428,10 @@ on_remote_data(struct spa_loop_utils *utils,
|
|||
|
||||
if (mask & (SPA_IO_ERR | SPA_IO_HUP)) {
|
||||
pw_log_error("protocol-native %p: got connection error", impl);
|
||||
pw_remote_destroy(this);
|
||||
return;
|
||||
pw_loop_destroy_source(this->core->main_loop, impl->source);
|
||||
impl->source = NULL;
|
||||
pw_remote_update_state(this, PW_REMOTE_STATE_ERROR, "connection error");
|
||||
return;
|
||||
}
|
||||
|
||||
if (mask & SPA_IO_IN) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue