Fix unexpected minicap death during start causing a TimeoutError, causing the licecycle to end unnecessarily. Now it will just try again like it should have from the start.

This commit is contained in:
Simo Kinnunen
2015-04-27 11:48:42 +09:00
parent 5d9b77a76a
commit 688ddda713
2 changed files with 52 additions and 27 deletions

View File

@@ -6,6 +6,10 @@ StateQueue.prototype.next = function() {
return this.queue.shift()
}
StateQueue.prototype.empty = function() {
return this.queue.length === 0
}
StateQueue.prototype.push = function(state) {
var found = false