From 9faa4c9ca69ad8596e8c4518e927cf77bd8ab61e Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 21 Dec 2021 22:43:41 +0000 Subject: [PATCH] More minor output changes. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3697 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/task.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/task.c b/src/task.c index 8773bcc2..39380883 100644 --- a/src/task.c +++ b/src/task.c @@ -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, "Socket", tf_socket_register(context)); JS_SetPropertyStr(context, global, "TlsContext", tf_tls_context_register(context)); - tf_database_register(context, task->_db); tf_file_register(context); task->_trace = tf_trace_create(); @@ -1408,8 +1407,10 @@ void tf_task_destroy(tf_task_t* task) sqlite3_close(task->_db); } - uv_print_all_handles(&task->_loop, stdout); - uv_loop_close(&task->_loop); + if (uv_loop_close(&task->_loop) != 0) + { + uv_print_all_handles(&task->_loop, stdout); + } --_count; free((void*)task->_path); free(task);