Skip to content

Commit

Permalink
Force close event
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Sep 3, 2013
1 parent 5c9ffb8 commit 349b7fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ _.extend(Endpoint.prototype, EventEmitter.prototype, {

onError: function(err){
Endpoint.log.error('[Endpoint] Error ' + (err ? err.message : ''));
this.socket.end(); // End the socket
this.socket.destroy(); // End the socket
this.emit('close', err ? err.message : '');
}
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "redsmin",
"description": "Redsmin proxy daemon for the Redsmin service",
"version": "1.0.5",
"version": "1.1.0",
"keywords": [
"redis",
"redis-gui",
Expand Down

0 comments on commit 349b7fa

Please sign in to comment.