Skip to content
Snippets Groups Projects
Commit 95aa277f authored by rswindell's avatar rswindell
Browse files

Make the write() method more tolerant of a script that is in the process

of being terminated (e.g. user hitting Ctrl-C in jsexec) - don't open
and truncate the .cnf file if we're going to exit with an exception
anyway and likely leave a 0-byte .cnf file behind.
parent 43154d5b
No related branches found
No related tags found
No related merge requests found
......@@ -231,6 +231,8 @@ var CNF = new (function() {
return false;
}
}
if(js.terminated)
return false;
var f = new File(fullpath(fileName));
if(!f.open('wb'))
return false;
......@@ -242,4 +244,4 @@ var CNF = new (function() {
})();
CNF;
\ No newline at end of file
CNF;
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