diff options
-rw-r--r-- | audio/headset.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c index 1a4b1171..bcaa4912 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1584,6 +1584,9 @@ gboolean headset_unlock(struct device *dev, void *data) { struct headset *hs = dev->headset; + if (!hs->locked) + return FALSE; + hs->locked = FALSE; headset_set_state(dev, HEADSET_STATE_DISCONNECTED); |