mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 03:43:25 +01:00
Add two missing mutex unlocks
This commit is contained in:
parent
80fd3d3b97
commit
0fc1d9e994
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user