Do not reap refreshing web sessions

If a web session is getting refreshed
by some function, do not weblogout
behind its back.

Wait until no refresh activity is detected
to perform weblogout.

Change-Id: I3fec8ecf84e153169fa5fd10745b1f323950085f
This commit is contained in:
Jarrod Johnson 2021-11-05 16:56:54 -04:00
parent 915a2afbed
commit a41f576206

View File

@ -1564,7 +1564,7 @@ class XCCClient(IMMClient):
self.fwo = None
if self._keepalivesession:
self._refresh_token_wc(self._keepalivesession)
elif self._wc:
elif self._wc and self._wc.vintage < util._monotonic_time() - 20:
self.weblogout()
def fetch_psu_firmware(self):