commit 34aabfb48f756bea402e9977dba753fc7de4653b
Author: Wim <wim@42.be>
Date: Sat Jul 01 22:41:28 2017 +0000
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index afcedcd..4dcc9ae 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -2296 +22910 @@ 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