kopia lustrzana https://github.com/robhawkes/vizicities
Merge pull request #195 from UDST/bug/worker-reject
Allow workers to fail properly with bad tile endpointsfeature/threejs-update
commit
1ca6273797
|
@ -150,7 +150,7 @@ class GeoJSONWorkerLayer extends Layer {
|
|||
} else {
|
||||
resolve();
|
||||
}
|
||||
});
|
||||
}).catch(reject);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -775,7 +775,7 @@ class GeoJSONWorkerLayer extends Layer {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}).catch(reject);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -98,6 +98,11 @@ class WorkerPool {
|
|||
|
||||
// Return result in deferred task promise
|
||||
task.deferred.resolve(result);
|
||||
}).catch((err) => {
|
||||
// Trigger task processing
|
||||
this.processTasks();
|
||||
|
||||
task.deferred.reject(err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue