From 69f066e432267a24e93d0e42016c71ffa0c92476 Mon Sep 17 00:00:00 2001 From: Adrian Zankich Date: Mon, 8 Sep 2014 14:30:23 -0700 Subject: [PATCH] async the auto start --- lib/robot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/robot.js b/lib/robot.js index 070c801..0bf6e3f 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -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); } };