mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
NETSCRIPT: Compiled modules will be even more shared (#468)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user