Permalink
Browse files

emitting 'close'

  • Loading branch information...
1 parent 1f4ec97 commit eb56accaaa4a172c855a8471b926f8cea462cbec @niegowski committed Feb 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ipc.js
View
@@ -85,6 +85,7 @@ IPC.prototype._setSocket = function(socket) {
this._socket.on('data', this._onData.bind(this));
this._socket.on('end', this.emit.bind(this, 'end'));
+ this._socket.on('close', this.emit.bind(this, 'close'));
this._socket.on('error', this.emit.bind(this, 'error'));
this._socket.on('timeout', this.emit.bind(this, 'timeout'));

0 comments on commit eb56acc

Please sign in to comment.