Skip to content

Commit

Permalink
Fixed issue with terminating connection twice
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchg committed Jan 10, 2011
1 parent e2a9758 commit aa9f259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/socket.io/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Client.prototype._onConnect = function(req, res){

this.connection.addListener('end', function(){
self._onClose();
self.connection.destroy();
self.connection = null;
if (self.connection)
self.connection.destroy();
});

if (req){
Expand Down

0 comments on commit aa9f259

Please sign in to comment.