Emit 'ready' event, not 'work', when working
This commit is contained in:
parent
4599d5054a
commit
de0a8fc0cb
|
@ -238,7 +238,7 @@ Robot.prototype.start = function() {
|
|||
var begin = function(callback) {
|
||||
Logger.info('Working.');
|
||||
|
||||
this.emit('work', this);
|
||||
this.emit('ready', this);
|
||||
this.work.call(this, this);
|
||||
this.running = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue