diff options
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/headset.c b/audio/headset.c index c6d8436b..8747b744 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -574,7 +574,10 @@ failed: g_slist_foreach(hs->pending, (GFunc) pending_connect_failed, device); g_slist_free(hs->pending); hs->pending = NULL; - headset_set_state(device, HEADSET_STATE_CONNECTED); + if (hs->rfcomm) + headset_set_state(device, HEADSET_STATE_CONNECTED); + else + headset_set_state(device, HEADSET_STATE_DISCONNECTED); return FALSE; } |