diff options
-rw-r--r-- | audio/manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/manager.c b/audio/manager.c index 8661dcca..453e2731 100644 --- a/audio/manager.c +++ b/audio/manager.c @@ -458,8 +458,11 @@ static void ag_io_cb(GIOChannel *chan, int err, const bdaddr_t *src, goto drop; } - if (!device->headset) + if (!device->headset) { btd_device_add_uuid(device->btd_dev, remote_uuid); + if (!device->headset) + goto drop; + } if (headset_get_state(device) > HEADSET_STATE_DISCONNECTED) { debug("Refusing new connection since one already exists"); |