Merge pull request #330 from juhovh/master

Remove useless _tryreads because they cause problems.
fork
Brian White 11 years ago
commit 051a115444

@ -165,7 +165,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),
@ -204,7 +203,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