1
This commit is contained in:
1 parent
45e59994da
commit
be037780a5
2 files changed
+6
-1
No files matched your search
@@ -282,6 +282,7 @@ int queue_data_put(struct ll_queue* q, struct ll_entry* entry, uint32_t id) {
|
||||
|
||||
// Проверить лимит размера
|
||||
if (q->size_limit >= 0 && q->count >= q->size_limit) {
|
||||
queue_dgram_free(entry);
|
||||
queue_entry_free(entry); // Освободить элемент если превышен лимит
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user