mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/matrix: handle token errors in /versions properly
Some checks failed
Some checks failed
Fixes mautrix/signal#554
This commit is contained in:
parent
a95101ea7f
commit
7324f6edec
1 changed files with 3 additions and 0 deletions
|
|
@ -264,6 +264,9 @@ func (br *Connector) ensureConnection(ctx context.Context) {
|
|||
br.logInitialRequestError(err, "Failed to register after /versions failed with M_FORBIDDEN")
|
||||
os.Exit(16)
|
||||
}
|
||||
} else if errors.Is(err, mautrix.MUnknownToken) || errors.Is(err, mautrix.MExclusive) {
|
||||
br.logInitialRequestError(err, "/versions request failed with auth error")
|
||||
os.Exit(16)
|
||||
} else {
|
||||
br.Log.Err(err).Msg("Failed to connect to homeserver, retrying in 10 seconds...")
|
||||
time.Sleep(10 * time.Second)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue