Fixed token being cleaned on managed machines on logout

This commit is contained in:
Adolfo Gómez García 2020-07-22 23:33:23 +02:00
parent 735a093b0b
commit 668c26dd8f

View File

@ -304,6 +304,7 @@ class CommonService: # pylint: disable=too-many-instance-attributes
def uninitialize(self):
self._initialized = False
self._cfg = self._cfg._replace(own_token=None) # Ensures assigned token is cleared
def finish(self) -> None:
if self._http:
@ -422,8 +423,6 @@ class CommonService: # pylint: disable=too-many-instance-attributes
if not self.isManaged():
self.uninitialize()
self._cfg = self._cfg._replace(own_token=None) # Ensures assigned token is cleared
# ****************************************
# Methods that CAN BE overriden by actors
# ****************************************