Attempt to reconnect only after 5 seconds.
This commit is contained in:
parent
d6bb3f8502
commit
94514dfe1e
39
converse.js
39
converse.js
@ -550,24 +550,27 @@
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.reconnect = function () {
|
this.reconnect = function (condition) {
|
||||||
converse.giveFeedback(__('Reconnecting'), 'error');
|
converse.log('Attempting to reconnect in 5 seconds');
|
||||||
if (converse.authentication !== "prebind") {
|
converse.giveFeedback(__('Attempting to reconnect in 5 seconds'), 'error');
|
||||||
this.connection.connect(
|
setTimeout(function () {
|
||||||
this.connection.jid,
|
if (converse.authentication !== "prebind") {
|
||||||
this.connection.pass,
|
this.connection.connect(
|
||||||
function (status, condition) {
|
this.connection.jid,
|
||||||
converse.onConnectStatusChanged(status, condition, true);
|
this.connection.pass,
|
||||||
},
|
function (status, condition) {
|
||||||
this.connection.wait,
|
this.onConnectStatusChanged(status, condition, true);
|
||||||
this.connection.hold,
|
}.bind(this),
|
||||||
this.connection.route
|
this.connection.wait,
|
||||||
);
|
this.connection.hold,
|
||||||
} else if (converse.prebind_url) {
|
this.connection.route
|
||||||
this.clearSession();
|
);
|
||||||
this._tearDown();
|
} else if (converse.prebind_url) {
|
||||||
this.startNewBOSHSession();
|
this.clearSession();
|
||||||
}
|
this._tearDown();
|
||||||
|
this.startNewBOSHSession();
|
||||||
|
}
|
||||||
|
}.bind(this), 5000);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.renderLoginPanel = function () {
|
this.renderLoginPanel = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user