Connection: add guard for conditional

fork
mscdex 11 years ago
parent ba3011d299
commit 5697fb601e

@ -1084,7 +1084,7 @@ Connection.prototype._resUntagged = function(info) {
i = toget.length;
if (i === 0) {
if (!msg.ended) {
if (msg && !msg.ended) {
msg.ended = true;
process.nextTick(function() {
msgEmitter.emit('end');

Loading…
Cancel
Save