Browse files

server: emit 'end'

  • Loading branch information...
1 parent e999c1f commit 4c9b34d5fa4a4afaf2c46dc269c48de29bd05104 @indutny committed Oct 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/spdy/server.js
View
3 lib/spdy/server.js
@@ -481,9 +481,10 @@ Stream.prototype.destroy = function destroy(error) {
}
var self = this;
+ this.emit('end');
process.nextTick(function() {
if (error) self.emit('error', error);
- self.emit('close');
+ self.emit('close', !!error);
});
};

0 comments on commit 4c9b34d

Please sign in to comment.