Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebou12 authored Mar 3, 2024
1 parent 09a6f8d commit 1a9cca0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,7 @@ async def close(self):
async with self.session_lock:
self.stop_polling() # Stop the polling
if self.session and not self.session.closed and self.active_requests == 0:
self.session_key = None
self.session_key_expiry = datetime.datetime.now(datetime.timezone.utc)
await self.session.close() # Close the session
self.session = None

class AuthenticationError(Exception):
pass
Expand Down

0 comments on commit 1a9cca0

Please sign in to comment.