Skip to content

Commit

Permalink
server: clean internal structures on close
Browse files Browse the repository at this point in the history
PR-URL: #59
  • Loading branch information
aqrln committed Apr 2, 2017
1 parent f5dcc48 commit 4befb9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ Server.prototype.close = function() {
var connection = server.clients[cid];
connection.close();
});

this.clients = {};
this._cachedClientsArray = [];
};

// Get all clients as an array of JSTP connection instances
Expand Down

0 comments on commit 4befb9f

Please sign in to comment.