Correct issue with Robot halting

This commit is contained in:
Andrew Stewart 2015-06-18 14:56:39 -07:00
parent 1be64381a9
commit f3efa83643
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -475,7 +475,7 @@ describe("Robot", function() {
}
});
bot.isRunning = true;
bot.running = true;
device = bot.devices.ping;
connection = bot.connections.loopback;