close socket on disconnect

This commit is contained in:
Manuel Araoz 2014-08-22 11:51:40 -04:00
commit 4fff3a9d4d
2 changed files with 5 additions and 21 deletions

View file

@ -1753,9 +1753,8 @@ Wallet.prototype.disconnect = function() {
self.send(null, {
type: 'disconnect',
walletId: this.id,
}, function() {
self.network.cleanUp();
});
self.network.cleanUp();
};
Wallet.prototype.getNetwork = function() {