Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Weibel <mweibel@users.noreply.github.com>2015-03-10 08:33:29 +0300
committerMichael Weibel <mweibel@users.noreply.github.com>2015-03-10 08:33:29 +0300
commit039aa58d206558785c61d4f57f79d4f59d1173d3 (patch)
tree98b7ea3e55bd55cc37071addf818d8b1039621d5 /src
parent1e3d463e51b2853335279016648b8e983e3d3b84 (diff)
parent46fae98660468d414598db53bbcc7df3efc74b6a (diff)
Merge pull request #366 from macedo/hotfix/avoid-to-leave-rooms-on-disconnect
avoid to leave room on disconnect
Diffstat (limited to 'src')
-rw-r--r--src/core.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core.js b/src/core.js
index 2e5fd6a..ad56181 100644
--- a/src/core.js
+++ b/src/core.js
@@ -330,9 +330,6 @@ Candy.Core = (function(self, Strophe, $) {
*/
self.disconnect = function() {
if(_connection.connected) {
- $.each(self.getRooms(), function() {
- Candy.Core.Action.Jabber.Room.Leave(this.getJid());
- });
_connection.disconnect();
}
};