Merge pull request #117 from wavify/fix-indata-temp

Don't reset indata.temp before in data.expect is zero.
fork
Brian White 12 years ago
commit 224823d123

@ -205,10 +205,11 @@ ImapConnection.prototype.connect = function(loginCb) {
indata.temp += r.toString('binary'); indata.temp += r.toString('binary');
else else
indata.temp = r.toString('binary'); indata.temp = r.toString('binary');
if (indata.expect === 0) if (indata.expect === 0) {
indata.literals.push(indata.temp); indata.literals.push(indata.temp);
indata.temp = undefined; indata.temp = undefined;
} }
}
if (b.p >= b.length) if (b.p >= b.length)
return; return;
} }

Loading…
Cancel
Save