diff options
-rw-r--r-- | src/lib/workers-list.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/workers-list.js b/src/lib/workers-list.js index 27953bb..3f2246e 100644 --- a/src/lib/workers-list.js +++ b/src/lib/workers-list.js @@ -126,7 +126,7 @@ class WorkersList { targets }) ) - .then(error => { + .catch(error => { this.logger.error('_pokeWorkerConnection:', error) }) } @@ -359,7 +359,7 @@ class WorkersList { */ _pauseContinueWorkers(action, targets) { (targets === null ? this.workers : this.getWorkersByTargets(targets)) - .map(worker => { + .forEach(worker => { this.logger.debug(`${action}Targets: sending ${action} request to ${worker.connection.remoteAddr()}`) let data = {} |