diff options
-rw-r--r-- | matterclient/matterclient.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index afcedcd6..4dcc9ae0 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -229,6 +229,10 @@ func (m *MMClient) Logout() error { m.WsQuit = true m.WsClient.Close() m.WsClient.UnderlyingConn().Close() + if strings.Contains(m.Credentials.Pass, model.SESSION_COOKIE_TOKEN) { + m.log.Debug("Not invalidating session in logout, credential is a token") + return nil + } _, err := m.Client.Logout() if err != nil { return err |