This commit is contained in:
doapp-ryanp 2015-10-15 16:26:11 -05:00
parent aabb9832d3
commit d2ba0e9161

View File

@ -198,12 +198,12 @@ class Jaws {
return Promise.coroutine(_this._queue[0])()
.then(function() {
_this._queue.splice(0, 1);
_this._queue.splice(0, 1); //todo: change to .shift()
if (_this._queue.length) return _this._executeQueue();
})
.catch(function(error) {
console.log('JAWS Plugin Error: ', error, error.stack);
_this._queue.splice(0, 1);
_this._queue.splice(0, 1); //todo: change to .shift()
// Crash, or keep going?
if (_this._queue.length) return _this._executeQueue();
});