Commit bd53211c authored by Olivier's avatar Olivier Committed by oroulet

fix handling of session_watchdog task

parent a847e93b
......@@ -519,8 +519,12 @@ class UaProcessor:
"""
_logger.info("Cleanup client connection: %s", self.name)
self._closing = True
if self.session:
await self.session.close_session(True)
try:
if self._session_watchdog_task:
await self._session_watchdog_task
finally:
if self.session:
await self.session.close_session(True)
async def _session_watchdog_loop(self):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment