From f3efa83643d7d15ed1ceaacf0a7ed974c98bcdb0 Mon Sep 17 00:00:00 2001 From: Andrew Stewart Date: Thu, 18 Jun 2015 14:56:39 -0700 Subject: [PATCH] Correct issue with Robot halting --- lib/robot.js | 2 +- spec/lib/robot.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/robot.js b/lib/robot.js index 222ec2b..17ebb58 100644 --- a/lib/robot.js +++ b/lib/robot.js @@ -398,7 +398,7 @@ Robot.prototype.startDevices = function(callback) { Robot.prototype.halt = function(callback) { callback = callback || function() {}; - if (!this.isRunning) { + if (!this.running) { return callback(); } diff --git a/spec/lib/robot.spec.js b/spec/lib/robot.spec.js index c5344be..7aca091 100644 --- a/spec/lib/robot.spec.js +++ b/spec/lib/robot.spec.js @@ -475,7 +475,7 @@ describe("Robot", function() { } }); - bot.isRunning = true; + bot.running = true; device = bot.devices.ping; connection = bot.connections.loopback;