Start closing the socket if TLS ends. Don't import apps if we're not running the SSB server (cleans up test output).

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3889 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-06-04 15:43:35 +00:00
parent cb9edaacd4
commit c8e09d8637
2 changed files with 5 additions and 1 deletions

View File

@ -357,7 +357,10 @@ static int _tf_run_task(const tf_run_args_t* args, int index)
tf_task_set_db_path(task, db_path);
tf_task_set_secrets_path(task, secrets_path);
tf_task_activate(task);
tf_ssb_import(tf_task_get_ssb(task), "core", "apps");
if (args->ssb_port)
{
tf_ssb_import(tf_task_get_ssb(task), "core", "apps");
}
if (tf_task_execute(task, args->script))
{
tf_task_run(task);

View File

@ -758,6 +758,7 @@ void _socket_onRead(uv_stream_t* stream, ssize_t readSize, const uv_buf_t* buffe
tf_util_report_error(context, result);
JS_FreeValue(context, result);
}
_socket_close_internal(socket);
break;
}
else