Only logoff if auth method and logout defined
Change-Id: I785ecde64302067aafbd44bcd3cc069b60146973
This commit is contained in:
parent
7f65ee1b3a
commit
5f5f99ef19
@ -58,7 +58,7 @@ class AgentConnection():
|
||||
self._auth = None
|
||||
|
||||
def close(self):
|
||||
if self._auth.logout:
|
||||
if self._auth and self._auth.logout:
|
||||
self._auth.logout()
|
||||
self._auth = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user