fix: properly close telegram client session to prevent resource leak (issue #52) #56

Merged
jihoson merged 1 commits from feature/issue-52-aiohttp-cleanup into main 2026-02-05 00:46:25 +09:00
Showing only changes of commit db0d966a6a - Show all commits

View File

@@ -549,7 +549,9 @@ async def run(settings: Settings) -> None:
except TimeoutError: except TimeoutError:
pass # Normal — timeout means it's time for next cycle pass # Normal — timeout means it's time for next cycle
finally: finally:
# Clean up resources
await broker.close() await broker.close()
await telegram.close()
db_conn.close() db_conn.close()
logger.info("The Ouroboros rests.") logger.info("The Ouroboros rests.")