diff --git a/spa/plugins/bluez5/backend-native.c b/spa/plugins/bluez5/backend-native.c index 5efde6a86..3ed54c838 100644 --- a/spa/plugins/bluez5/backend-native.c +++ b/spa/plugins/bluez5/backend-native.c @@ -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) {