From 2989fe1da46cf12e15f909840645dc092e402922 Mon Sep 17 00:00:00 2001 From: Yemel Jardi Date: Fri, 29 Aug 2014 11:22:22 -0300 Subject: [PATCH] Remove handlers before disconnecting the socket --- js/models/network/Async.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/models/network/Async.js b/js/models/network/Async.js index 675c39966..172133fae 100644 --- a/js/models/network/Async.js +++ b/js/models/network/Async.js @@ -35,6 +35,7 @@ Network.prototype.cleanUp = function() { this.criticalErr = ''; this.removeAllListeners(); if (this.socket) { + this.socket.removeAllListeners(); this.socket.disconnect(); this.socket = null; }