Skip to content

Commit 14f5104

Browse files
updated the app state clearing
1 parent a7b648c commit 14f5104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ async def shutdown():
8383
await SectionAgentFactory.delete_agent()
8484

8585
# clear app state
86-
if hasattr(app, 'state'):
86+
if hasattr(app, 'browse_agent') or hasattr(app, 'template_agent') or hasattr(app, 'section_agent'):
8787
app.browse_agent = None
8888
app.template_agent = None
8989
app.section_agent = None

0 commit comments

Comments
 (0)