Merge branch 'master' into feature/task-functions
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 17 Sep 2023 19:34:30 +0000 (21:34 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Sep 2023 19:34:30 +0000 (21:34 +0200)
1  2 
src/pools/abstract-pool.ts

index 5d649f19da42790b617da8bc4a8c1385b98d1684,cbc24e7d84c65c3313f0e27aea9f927ea7bfe543..3d10391c17748cdd63473c4afae7630665023008
@@@ -1518,9 -1395,9 +1518,9 @@@ export abstract class AbstractPool
        this.getWorkerNodeKeyByWorkerId(message.workerId)
      )
      workerInfo.ready = message.ready as boolean
 -    workerInfo.taskFunctions = message.taskFunctions
 +    workerInfo.taskFunctionNames = message.taskFunctionNames
-     if (this.emitter != null && this.ready) {
-       this.emitter.emit(PoolEvents.ready, this.info)
+     if (this.ready) {
+       this.emitter?.emit(PoolEvents.ready, this.info)
      }
    }