Skip to content
Snippets Groups Projects
Commit 2a76ffdf authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Add a bit of paranoia to the infinite loop in lock_cfg() too.

parent 292028f3
No related branches found
No related tags found
No related merge requests found
...@@ -1409,9 +1409,14 @@ function open_cfg(usr) ...@@ -1409,9 +1409,14 @@ function open_cfg(usr)
function lock_cfg() function lock_cfg()
{ {
while(!cfgfile.lock(0, 1)) while(!cfgfile.lock(0, 1)) {
if (!client.socket.is_connected)
exit(0);
if (js.termianted)
exit(0);
mswait(10); mswait(10);
} }
}
function unlock_cfg() function unlock_cfg()
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment