more graceful handling of slice cancellation
This commit is contained in:
parent
bfec51b544
commit
87ff83ca97
2 changed files with 2 additions and 0 deletions
|
|
@ -153,6 +153,7 @@ function prepareSlices(callback, scale = 1, offset = 0) {
|
|||
show.progress(0);
|
||||
client.restart();
|
||||
event.emit('slice.error', error);
|
||||
setTimeout(view.set_arrange, 1);
|
||||
}
|
||||
if (errored) {
|
||||
// terminate slicing
|
||||
|
|
|
|||
|
|
@ -812,6 +812,7 @@ class Widget {
|
|||
*/
|
||||
render(stack) {
|
||||
const mark = Date.now();
|
||||
if (this.slices)
|
||||
this.slices.forEach(slice => {
|
||||
if (slice.layers) {
|
||||
stack.add(slice.layers);
|
||||
|
|
|
|||
Loading…
Reference in a new issue