core: Testing a theory to encourage clean shutdowns.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 15m30s

This commit is contained in:
2024-10-25 15:34:43 -04:00
parent 30e92f2bc1
commit 01b8c209de
2 changed files with 2 additions and 1 deletions

View File

@ -1869,6 +1869,7 @@ void tf_task_destroy(tf_task_t* task)
{
JSValue global = JS_GetGlobalObject(task->_context);
JS_SetPropertyStr(task->_context, global, "httpd", JS_UNDEFINED);
JS_SetPropertyStr(task->_context, global, "gProcesses", JS_NewObject(task->_context));
JS_FreeValue(task->_context, global);
}