More minor output changes.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3697 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2021-12-21 22:43:41 +00:00
parent 58b0b54785
commit 9faa4c9ca6

View File

@ -1300,7 +1300,6 @@ void tf_task_activate(tf_task_t* task)
JS_SetPropertyStr(context, global, "Task", tf_taskstub_register(context)); JS_SetPropertyStr(context, global, "Task", tf_taskstub_register(context));
JS_SetPropertyStr(context, global, "Socket", tf_socket_register(context)); JS_SetPropertyStr(context, global, "Socket", tf_socket_register(context));
JS_SetPropertyStr(context, global, "TlsContext", tf_tls_context_register(context)); JS_SetPropertyStr(context, global, "TlsContext", tf_tls_context_register(context));
tf_database_register(context, task->_db);
tf_file_register(context); tf_file_register(context);
task->_trace = tf_trace_create(); task->_trace = tf_trace_create();
@ -1408,8 +1407,10 @@ void tf_task_destroy(tf_task_t* task)
sqlite3_close(task->_db); sqlite3_close(task->_db);
} }
uv_print_all_handles(&task->_loop, stdout); if (uv_loop_close(&task->_loop) != 0)
uv_loop_close(&task->_loop); {
uv_print_all_handles(&task->_loop, stdout);
}
--_count; --_count;
free((void*)task->_path); free((void*)task->_path);
free(task); free(task);