async the auto start

This commit is contained in:
Adrian Zankich 2014-09-08 14:30:23 -07:00
parent 3ec6c2717a
commit 69f066e432
1 changed files with 4 additions and 2 deletions

View File

@ -122,8 +122,10 @@ var Robot = module.exports = function Robot(opts) {
var auto_start = Utils.fetch(Config, 'auto_start', true);
if (auto_start) {
this.start();
if (auto_start) {
setTimeout(function() {
this.start();
}.bind(this), 0);
}
};