mirror of
https://github.com/coturn/coturn.git
synced 2025-10-30 14:31:29 +01:00
Fix user quota release #786
This commit is contained in:
parent
553ce02168
commit
5cf657cdff
@ -700,7 +700,11 @@ void release_allocation_quota(uint8_t *user, int oauth, uint8_t *realm)
|
||||
ur_string_map_get(rp->status.alloc_counters, (ur_string_map_key_type) username, &value);
|
||||
if (value) {
|
||||
value = (ur_string_map_value_type)(((size_t)value) - 1);
|
||||
ur_string_map_put(rp->status.alloc_counters, (ur_string_map_key_type) username, value);
|
||||
if (value == 0) {
|
||||
ur_string_map_del(rp->status.alloc_counters, (ur_string_map_key_type) username);
|
||||
} else {
|
||||
ur_string_map_put(rp->status.alloc_counters, (ur_string_map_key_type) username, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (rp->status.total_current_allocs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user