diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-28 08:43:31 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-28 08:43:31 +0000 |
commit | 770f024d7ca279390820569f46061830b3b89330 (patch) | |
tree | f2e3e7dc92cb494b9592366b30a819bc57fc259f /audio/headset.c | |
parent | ce98ca977ac70c82e721505ca5423471d9a13f60 (diff) |
Handle alsa+HSP better on client disconnect
Diffstat (limited to 'audio/headset.c')
-rw-r--r-- | audio/headset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index da224b8a..1a4b1171 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1586,6 +1586,8 @@ gboolean headset_unlock(struct device *dev, void *data) hs->locked = FALSE; + headset_set_state(dev, HEADSET_STATE_DISCONNECTED); + return TRUE; } |