Close sessions for all services on shutdown

This commit is contained in:
Machka Pasla
2025-07-29 14:44:55 +03:00
parent 14f244ab79
commit 8246e9a590
4 changed files with 48 additions and 7 deletions
+4
View File
@@ -34,6 +34,10 @@ class PanelApiService:
self._session = None
logging.info("Panel API service HTTP session closed.")
async def close(self):
"""Alias for close_session for API consistency."""
await self.close_session()
async def _prepare_headers(self) -> Dict[str, str]:
headers = {
"Content-Type": "application/json",