forked from cory/tildefriends
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:
parent
cb9edaacd4
commit
c8e09d8637
@ -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_db_path(task, db_path);
|
||||||
tf_task_set_secrets_path(task, secrets_path);
|
tf_task_set_secrets_path(task, secrets_path);
|
||||||
tf_task_activate(task);
|
tf_task_activate(task);
|
||||||
|
if (args->ssb_port)
|
||||||
|
{
|
||||||
tf_ssb_import(tf_task_get_ssb(task), "core", "apps");
|
tf_ssb_import(tf_task_get_ssb(task), "core", "apps");
|
||||||
|
}
|
||||||
if (tf_task_execute(task, args->script))
|
if (tf_task_execute(task, args->script))
|
||||||
{
|
{
|
||||||
tf_task_run(task);
|
tf_task_run(task);
|
||||||
|
@ -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);
|
tf_util_report_error(context, result);
|
||||||
JS_FreeValue(context, result);
|
JS_FreeValue(context, result);
|
||||||
}
|
}
|
||||||
|
_socket_close_internal(socket);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user