Skip to content

Commit d308766

Browse files
committed
perf: Close chat
1 parent 459f8a7 commit d308766

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/open_webui/socket/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ async def disconnect(sid):
671671

672672
chats = chat_manager.list(query={'socket_id': sid})
673673

674-
for chat in chats:
674+
for chat in chats['results']:
675675
jms_session = JMSSession(chat)
676676
await jms_session.close()
677677
else:

0 commit comments

Comments
 (0)