This commit is contained in:
2025-06-06 10:46:16 -05:00
parent 5b9f1b8f51
commit 6687008d1a
2 changed files with 5 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ JSValue actor2js(JSContext *js, cell_rt *actor)
} }
JSC_CCALL(os_createactor, JSC_CCALL(os_createactor,
cell_rt *rt = JS_GetContextOpaque(js);
if (rt->disrupt)
return JS_ThrowInternalError(js, "Can't start a new actor while disrupting.");
void *startup = value2wota(js, argv[0], JS_UNDEFINED); void *startup = value2wota(js, argv[0], JS_UNDEFINED);
create_actor(startup); create_actor(startup);
) )

View File

@@ -1,4 +1,4 @@
$_.unneeded(_ => { $_.unneeded(_ => {
log.console("Unneded function fired."); log.console("Unneded function fired.");
$_.unneeded($_.stop, 1); $_.start(undefined, "unneeded")
}, 1); }, 1);