From 726e6ef120623b18ab5e9c86c9b3072eb35b67e3 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 22 Feb 2024 16:03:24 -0500 Subject: [PATCH] Always track disconnection on shutdown instead of only when logged out --- user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.go b/user.go index 8ad438c3..ab36113e 100644 --- a/user.go +++ b/user.go @@ -503,8 +503,8 @@ func (user *User) startupTryConnect(retryCount int) { } else { user.log.Debug().Msg("Clean Shutdown, but logged out - Sending BadCredentials BridgeState") user.BridgeState.Send(status.BridgeState{StateEvent: status.StateBadCredentials, Message: "You have been logged out of Signal, please reconnect"}) - user.bridge.Metrics.TrackConnectionState(user.SignalID, false) } + user.bridge.Metrics.TrackConnectionState(user.SignalID, false) } } }()