Commit 095a1bc5 authored by JC Brand's avatar JC Brand

Fixes #1490. Don't reconnect if were weren't auth'd to begin with.

parent 690ff1fb
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
## 7.0.0 (Unreleased) ## 7.0.0 (Unreleased)
- #1313: Stylistic improvements to the send button - #1313: Stylistic improvements to the send button
- #1490: Busy-loop when fetching registration form fails
- #1535: Add option to destroy a MUC - #1535: Add option to destroy a MUC
- #1715: Update chat state notification after receiving a message correction. - #1715: Update chat state notification after receiving a message correction.
- #1793: Send button doesn't appear in Firefox in 1:1 chats - #1793: Send button doesn't appear in Firefox in 1:1 chats
......
...@@ -1269,10 +1269,15 @@ _converse.api = { ...@@ -1269,10 +1269,15 @@ _converse.api = {
// (now failed) session. // (now failed) session.
await _converse.setUserJID(_converse.settings.jid); await _converse.setUserJID(_converse.settings.jid);
} }
if (_converse.connection.reconnecting) {
debouncedReconnect(); if (_converse.connection.authenticated) {
if (_converse.connection.reconnecting) {
debouncedReconnect();
} else {
return reconnect();
}
} else { } else {
return reconnect(); log.warn("Not attempting to reconnect because we're not authenticated");
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment