Commit dee6266e authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Check for user disconnection in CheckTerminate()

A user disconnecting while running tw2 would just result in an infinite loop
checking node status and waiting for the user's allowed time to run out (which
may never happen) or for the server to be locally terminated.

This has been happening for years on Vertrauen. Finally now I see why.
parent c84808d0
Pipeline #2976 passed with stage
in 9 minutes and 54 seconds
......@@ -38,7 +38,7 @@ function CheckTime()
function CheckTerminate()
{
if(js.terminated)
if(js.terminated || !bbs.online)
exit(0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment