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()
function exit_func()
{
try {
close_sub();
}
catch(error) {}
if (locked_code !== undefined) {
try {
log("At exit, "+locked_code+" is still locked.");
unlock_cfg(locked_code);
}
catch(error) {}
}
try {
save_cfg();
}
catch (error) {
}
catch (error) {}
}
function binify(seen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment