make first part of slicing cancellable

This commit is contained in:
Stewart Allen 2018-03-08 09:28:03 -05:00
commit 26bf2baf5e
6 changed files with 55 additions and 24 deletions

View file

@ -577,7 +577,12 @@ var gs_kiri_widget = exports;
var catchupdate = function(progress, message) {
onupdate(progress, message);
return widget.cancel ? 42 : 0;
if (widget.cancel) {
ondone("canceled");
return 42;
} else {
return 0;
}
};
var driver = null;