Remove useless _tryreads because they cause problems.

These cases are already handled in _parse function.
fork
Juho Vähä-Herttua 11 years ago
parent d4e7eb6257
commit 130f1bea74

@ -163,7 +163,6 @@ Parser.prototype._resTagged = function() {
// non-BODY literal -- buffer it
this._buffer = this._buffer.replace(RE_LITERAL, LITPLACEHOLDER);
this._literallen = parseInt(m[1], 10);
this._tryread(this._literallen);
} else {
var m = RE_TAGGED.exec(this._buffer),
tagnum = parseInt(m[1], 10),
@ -202,7 +201,6 @@ Parser.prototype._resUntagged = function() {
// non-BODY literal -- buffer it
this._buffer = this._buffer.replace(RE_LITERAL, LITPLACEHOLDER);
this._literallen = parseInt(m[1], 10);
this._tryread(this._literallen);
} else if (m = RE_UNTAGGED.exec(this._buffer)) {
this._buffer = '';
// normal single line response

Loading…
Cancel
Save