NETSCRIPT: Compiled modules will be even more shared (#468)

This commit is contained in:
David Walker
2023-04-07 18:08:39 -07:00
committed by GitHub
parent f74002cce0
commit ed9e6d5ea3
10 changed files with 124 additions and 103 deletions

View File

@@ -99,7 +99,11 @@ test.each([
const result = await Promise.race([
alerted,
new Promise((resolve) => {
eventDelete = WorkerScriptStartStopEventEmitter.subscribe(() => resolve(null));
eventDelete = WorkerScriptStartStopEventEmitter.subscribe(() => {
if (!server.runningScripts.includes(runningScript)) {
resolve(null);
}
});
}),
]);
// If an error alert was thrown, we catch it here.