|
|
@@ -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
|
}
|