Clients are now kept forever

This commit is contained in:
Saifeddine ALOUI 2024-05-30 19:31:32 +02:00
parent 01936c979d
commit 4eaad8e5e9
2 changed files with 6 additions and 4 deletions

@ -1 +1 @@
Subproject commit 144e0557e515d5776e5287b9bdad731c2f25abfc
Subproject commit 3a2bc02c1cd537069d83e9aafeaa506f82e01b1b

View File

@ -225,7 +225,8 @@ class LOLLMSWebUI(LOLLMSElfServer):
if self.session.get_client(sid).processing:
self.session.get_client(sid).schedule_for_deletion=True
else:
self.session.remove_client(sid, sid)
# Clients are now kept forever
pass# self.session.remove_client(sid, sid)
except Exception as ex:
pass
@ -1343,8 +1344,9 @@ class LOLLMSWebUI(LOLLMSElfServer):
self.close_message(client_id)
client.processing=False
if client.schedule_for_deletion:
self.session.remove_client(client.client_id, client.client_id)
# Clients are now kept forever
#if client.schedule_for_deletion:
# self.session.remove_client(client.client_id, client.client_id)
ASCIIColors.success(f" ╔══════════════════════════════════════════════════╗ ")
ASCIIColors.success(f" ║ Done ║ ")