Fix error handling in worker delegation
This commit is contained in:
parent
92ba73402a
commit
c73b4536be
|
@ -143,7 +143,7 @@ AsyncProxy.prototype.delegate = function(method, options) {
|
|||
}
|
||||
}
|
||||
|
||||
return new Promise(async (resolve, reject) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
// clone packets (for web worker structured cloning algorithm)
|
||||
this.workers[workerId].postMessage({ id:id, event:method, options:packet.clone.clonePackets(options) }, util.getTransferables(options));
|
||||
this.workers[workerId].requests++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user