async the auto start
This commit is contained in:
parent
3ec6c2717a
commit
69f066e432
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue