Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
return client details with error, emit another disconnect event
Browse files Browse the repository at this point in the history
  • Loading branch information
bjyoungblood committed Dec 14, 2011
1 parent 9504144 commit c807da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/server-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ var serverConnection = function(socket, server, closeConnectionServerCallback, c
self.closeConnectionServerCallback(self.connection_id);
}

self.emit('disconnect', self);
self.destroy();
};

Expand All @@ -413,7 +414,7 @@ var serverConnection = function(socket, server, closeConnectionServerCallback, c
}

self.destroy();
self.emit('error', e);
self.emit('error', self, e);
};
};

Expand Down

0 comments on commit c807da1

Please sign in to comment.