1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 19:23:01 +01:00

Add two missing mutex unlocks

This commit is contained in:
jfreegman 2021-03-27 11:50:57 -04:00
parent 80fd3d3b97
commit 0fc1d9e994
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 0 deletions

View File

@ -575,6 +575,7 @@ DeviceError close_device(DeviceType type, uint32_t device_idx)
Device *device = &audio_state->devices[type][device_idx]; Device *device = &audio_state->devices[type][device_idx];
if (!device->active) { if (!device->active) {
unlock(type);
return de_DeviceNotActive; return de_DeviceNotActive;
} }

View File

@ -707,6 +707,7 @@ int box_notify(ToxWindow *self, Notification notif, uint64_t flags, int *id_indi
#else #else
if (id == -1) { if (id == -1) {
control_unlock();
return -1; return -1;
} }