From 0fc1d9e9944ba1e7598b7039974fc26f1b0b63cb Mon Sep 17 00:00:00 2001 From: jfreegman Date: Sat, 27 Mar 2021 11:50:57 -0400 Subject: [PATCH] Add two missing mutex unlocks --- src/audio_device.c | 1 + src/notify.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/audio_device.c b/src/audio_device.c index d00d779..870974f 100644 --- a/src/audio_device.c +++ b/src/audio_device.c @@ -575,6 +575,7 @@ DeviceError close_device(DeviceType type, uint32_t device_idx) Device *device = &audio_state->devices[type][device_idx]; if (!device->active) { + unlock(type); return de_DeviceNotActive; } diff --git a/src/notify.c b/src/notify.c index c8b2ed8..5d83a29 100644 --- a/src/notify.c +++ b/src/notify.c @@ -707,6 +707,7 @@ int box_notify(ToxWindow *self, Notification notif, uint64_t flags, int *id_indi #else if (id == -1) { + control_unlock(); return -1; }