Browse Source

Not disconnect on 3rd PING failure

master
paweldomas 9 years ago
parent
commit
d62ad1c2fd
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      modules/xmpp/strophe.ping.js

+ 6
- 1
modules/xmpp/strophe.ping.js View File

@@ -120,7 +120,12 @@ module.exports = function (XMPP, eventEmitter) {
120 120
                         GlobalOnErrorHandler.callErrorHandler(
121 121
                             new Error(errmsg));
122 122
                         logger.error(errmsg, error);
123
-                        self.connection.disconnect();
123
+                        // FIXME it doesn't help to disconnect when 3rd PING
124
+                        // times out, it only stops Strophe from retrying.
125
+                        // Not really sure what's the right thing to do in that
126
+                        // situation, but just closing the connection makes no
127
+                        // sense.
128
+                        //self.connection.disconnect();
124 129
                     } else {
125 130
                         logger.warn(errmsg, error);
126 131
                     }

Loading…
Cancel
Save