Сохрани накопленные исправления аудио, async и диагностики
This commit is contained in:
1 parent
b1e3193899
commit
bdcf8b5634
59 files changed
+4611
-1441
No files matched your search
@@ -502,9 +502,13 @@ int main(int argc, char** argv) {
|
||||
|
||||
if (t.inst[IDX_A]) utun_instance_destroy(t.inst[IDX_A]);
|
||||
if (t.inst[IDX_B]) utun_instance_destroy(t.inst[IDX_B]);
|
||||
uasync_poll(ua, 0); // завершить отложенное освобождение CM и роутера
|
||||
uasync_drain_immediate(ua); // завершить все порции отложенного освобождения CM и роутера
|
||||
uasync_poll(ua, 0); // удалить отменённые таймеры из heap
|
||||
if (ua->timer_alloc_count != ua->timer_free_count || ua->socket_alloc_count != ua->socket_free_count) {
|
||||
fprintf(stderr, "headless teardown left live timers or sockets\n"); ok = 0;
|
||||
fprintf(stderr, "headless teardown left live timers or sockets: timers=%zu/%zu sockets=%zu/%zu\n",
|
||||
ua->timer_alloc_count, ua->timer_free_count, ua->socket_alloc_count, ua->socket_free_count);
|
||||
debug_set_category_level(DEBUG_CATEGORY_SYS, DEBUG_LEVEL_INFO);
|
||||
uasync_print_resources(ua, "HEADLESS_TEARDOWN_FAILED"); ok = 0;
|
||||
}
|
||||
uasync_destroy(ua, 0);
|
||||
|
||||
|
||||
Reference in new issue
Block a user