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
diff options
context:
space:
mode:
authorRafael Macedo <macedo.rafaelfernandes@gmail.com>2015-02-23 23:05:00 +0300
committerRafael Macedo <macedo.rafaelfernandes@gmail.com>2015-02-23 23:05:00 +0300
commit46fae98660468d414598db53bbcc7df3efc74b6a (patch)
tree3617399ef42828c5d9aabe8be1e29a0bd0a780e0
parentfc300323ec3724cd2d82ab4674a8f7f2e45ff900 (diff)
avoid to leave room on disconnect
-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();
}
};