mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: backend-native: fix erroneous goto
In this error condition, execution is supposed to return immediately because rfcomm is no longer valid. However, the code was incorrectly changed to jump to the done label, which would try to use rfcomm again to process pending commands.
This commit is contained in:
parent
62645214a7
commit
48fb960274
1 changed files with 1 additions and 1 deletions
|
|
@ -1309,7 +1309,7 @@ static bool hfp_hf_wait_for_reply(struct rfcomm *rfcomm, char *buf, size_t len)
|
|||
if (fds[0].revents & (POLLHUP | POLLERR)) {
|
||||
spa_log_info(backend->log, "lost RFCOMM connection.");
|
||||
rfcomm_free(rfcomm);
|
||||
goto done;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (fds[0].revents & POLLIN) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue