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;