Diff between ba920d3edb7afb61ca1cd1c1ae57aaccba503fc2 and 5d4efe960fd94d692e51234cd5f81a5779b2dd07
Changed Files
| File | Additions | Deletions | Status |
| client/player.c | +8 | -1 | modified |
Full Patch
diff --git a/client/player.c b/client/player.c
index 8e68fbc..598ad7f 100644
--- a/client/player.c
+++ b/client/player.c
@@ -5017,8 +5017,15 @@ static void transport_acquire(GDBusProxy *proxy, bool prompt)
* endpoint.
*/
ep = find_ep_by_transport(g_dbus_proxy_get_path(proxy));
- if (!ep || queue_find(ep->acquiring, NULL, proxy))
+ if (!ep) {
+ bt_shell_printf("transport endpoint not found\n");
return;
+ }
+
+ if (queue_find(ep->acquiring, NULL, proxy)) {
+ bt_shell_printf("acquire already in progress\n");
+ return;
+ }
if (!ep->broadcast) {
link = find_link_by_proxy(proxy);