From c03b574ef61a4f82772c8611aefe9e1675ca379f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 22 Jul 2025 23:39:33 +0400 Subject: [PATCH] refac/fix --- backend/open_webui/socket/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index cc78bbb98d..0c7374254a 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -581,7 +581,7 @@ async def yjs_document_leave(sid, data): ) if ( - YDOC_MANAGER.document_exists(document_id) + await YDOC_MANAGER.document_exists(document_id) and len(await YDOC_MANAGER.get_users(document_id)) == 0 ): log.info(f"Cleaning up document {document_id} as no users are left")