Skip to content
Snippets Groups Projects
Commit 1c5404fd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Better to just break this loop than to call exit()

exit()ing from a load()ed script can cause the parent script to terminate and
we don't want that.
parent 15c2d974
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ require("sbbsdefs.js", "USER_EXPERT"); ...@@ -6,7 +6,7 @@ require("sbbsdefs.js", "USER_EXPERT");
const menufile = "maincfg"; const menufile = "maincfg";
while(bbs.online) { while(bbs.online && !js.terminated) {
if(!(user.settings & USER_EXPERT)) if(!(user.settings & USER_EXPERT))
bbs.menu(menufile); bbs.menu(menufile);
bbs.nodesync(); bbs.nodesync();
...@@ -40,5 +40,5 @@ while(bbs.online) { ...@@ -40,5 +40,5 @@ while(bbs.online) {
console.print("\r\nMessage scan configuration and pointers saved.\r\n"); console.print("\r\nMessage scan configuration and pointers saved.\r\n");
break; break;
} }
exit(); break;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment