Skip to content

Commit

Permalink
because reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
timgit committed Mar 9, 2017
1 parent 5c8e6a9 commit a5ec330
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class Manager extends EventEmitter {

function register(options, callback) {

let onError = error => self.emit('error', error);

let workerConfig = {
name,
fetcher: () => self.fetch(name),
Expand All @@ -110,7 +112,7 @@ class Manager extends EventEmitter {
self.emit('job', job);
setImmediate(() => callback(job, () => self.complete(job.id)));
},
error: error => self.emit('error', error),
error: onError,
interval: self.config.newJobCheckInterval
};

Expand Down

0 comments on commit a5ec330

Please sign in to comment.