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

Wrap each cleanup step in a separate try/catch in exit func.

Clean up as much as possible.
parent 5ecec81c
Branches
Tags
No related merge requests found
...@@ -1549,16 +1549,21 @@ function old_unlock_cfg() ...@@ -1549,16 +1549,21 @@ function old_unlock_cfg()
function exit_func() function exit_func()
{ {
close_sub(); try {
close_sub();
}
catch(error) {}
if (locked_code !== undefined) { if (locked_code !== undefined) {
log("At exit, "+locked_code+" is still locked."); try {
unlock_cfg(locked_code); log("At exit, "+locked_code+" is still locked.");
unlock_cfg(locked_code);
}
catch(error) {}
} }
try { try {
save_cfg(); save_cfg();
} }
catch (error) { catch (error) {}
}
} }
function binify(seen) function binify(seen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment