diff --git a/lib/transport/binary/protocol/operation.js b/lib/transport/binary/protocol/operation.js index 99410e1..f2e1130 100644 --- a/lib/transport/binary/protocol/operation.js +++ b/lib/transport/binary/protocol/operation.js @@ -805,7 +805,6 @@ Operation.prototype.parseArray = function (buffer, offset, context, fieldName, r Operation.prototype.parseError = function (buffer, offset, context, fieldName, reader) { var err = new errors.Request(); err.previous = []; - // remove any ops we were expecting to run. this.readOps = []; @@ -822,11 +821,9 @@ Operation.prototype.parseError = function (buffer, offset, context, fieldName, r if (data.hasMore) { prev = new errors.Request(); err.previous.push(prev); + this.stack.pop(); this.stack.push(prev); readItem.call(this); - this.readOps.push(function () { - this.stack.pop(); - }); } else { this.readBytes('javaStackTrace', function (data) {