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; }