mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-06-02 06:13:46 +02:00
Optimized code in hot paths with z-ai/glm5
This commit is contained in:
@@ -145,6 +145,11 @@ async def lifespan(app: FastAPI):
|
||||
yield
|
||||
|
||||
# Cleanup
|
||||
if message_handler and hasattr(message_handler, "session_store"):
|
||||
try:
|
||||
message_handler.session_store.flush_pending_save()
|
||||
except Exception as e:
|
||||
logger.warning(f"Session store flush on shutdown: {e}")
|
||||
logger.info("Shutdown requested, cleaning up...")
|
||||
if messaging_platform:
|
||||
await _best_effort("messaging_platform.stop", messaging_platform.stop())
|
||||
|
||||
Reference in New Issue
Block a user