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

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Jul 29, 2015
2 parents 7c68a89 + 8c0f625 commit 6467e72
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![TravisCI](https://img.shields.io/travis/XadillaX/illyria2/master.svg)](https://travis-ci.org/XadillaX/illyria2) [![Coveralls](https://img.shields.io/coveralls/XadillaX/illyria2/master.svg)](https://coveralls.io/r/XadillaX/illyria2) [![Dependencies](https://david-dm.org/XadillaX/illyria2.svg)](http://david-dm.org/XadillaX/illyria2)

The next generation Illyria RPC SDK for node.js in Huaban.
The next generation Illyria RPC SDK for node.js in Huaban with ❤️.

## Installation

Expand Down
8 changes: 6 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,12 @@ IllyriaClient.prototype.cast = function(module, method, params, callback) {
*/
IllyriaClient.prototype.close = function() {
if(this.socket) {
this.socket.end();
this.socket.destroy();
try {
this.socket.end();
this.socket.destroy();
} catch(e) {
//...
}
}
this.socket = null;
this.status = "CLOSED";
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "illyria",
"version": "2.2.0",
"version": "2.2.1",
"description": "The next generation Illyria RPC SDK for node.js.",
"main": "index.js",
"scripts": {
Expand All @@ -22,8 +22,8 @@
],
"license": "MIT",
"dependencies": {
"async": "^1.3.0",
"enum": "^2.0.0",
"async": "^1.4.0",
"enum": "^2.1.0",
"eventemitter2": "^0.4.14",
"msgpack": "^0.2.6",
"node-zookeeper-client": "^0.2.2",
Expand Down

0 comments on commit 6467e72

Please sign in to comment.