File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1338,15 +1338,15 @@ export abstract class AbstractPool<
13381338 } ) ,
13391339 )
13401340 } finally {
1341+ delete this . startTimestamp
1342+ this . destroying = false
1343+ this . started = false
13411344 if ( this . eventTarget != null ) {
13421345 this . eventTarget . dispatchEvent (
13431346 new CustomEvent < PoolInfo > ( PoolEvents . destroy , { detail : this . info } ) ,
13441347 )
13451348 this . readyEventEmitted = false
13461349 }
1347- delete this . startTimestamp
1348- this . destroying = false
1349- this . started = false
13501350 }
13511351 }
13521352
@@ -2209,9 +2209,9 @@ export abstract class AbstractPool<
22092209 }
22102210 this . afterTaskExecutionHook ( workerNodeKey , message )
22112211 queueMicrotask ( ( ) => {
2212- this . checkAndEmitTaskExecutionFinishedEvents ( )
22132212 workerNode ?. dispatchEvent ( new Event ( 'taskFinished' ) )
22142213 this . promiseResponseMap . delete ( taskId ! )
2214+ this . checkAndEmitTaskExecutionFinishedEvents ( )
22152215 if ( this . opts . enableTasksQueue === true && ! this . destroying ) {
22162216 if (
22172217 ! this . isWorkerNodeBusy ( workerNodeKey ) &&
You can’t perform that action at this time.
0 commit comments