Correct issue with Robot halting
This commit is contained in:
parent
1be64381a9
commit
f3efa83643
|
@ -398,7 +398,7 @@ Robot.prototype.startDevices = function(callback) {
|
||||||
Robot.prototype.halt = function(callback) {
|
Robot.prototype.halt = function(callback) {
|
||||||
callback = callback || function() {};
|
callback = callback || function() {};
|
||||||
|
|
||||||
if (!this.isRunning) {
|
if (!this.running) {
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -475,7 +475,7 @@ describe("Robot", function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
bot.isRunning = true;
|
bot.running = true;
|
||||||
|
|
||||||
device = bot.devices.ping;
|
device = bot.devices.ping;
|
||||||
connection = bot.connections.loopback;
|
connection = bot.connections.loopback;
|
||||||
|
|
Loading…
Reference in New Issue