This commit is contained in:
Saifeddine ALOUI 2024-01-14 00:42:18 +01:00
parent 089ea35750
commit 8d06362e55
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,7 @@ from lollms.utilities import load_config
from pathlib import Path
from typing import List
import sys
import socketio
# ----------------------- Defining router and main class ------------------------------
# Create an instance of the LoLLMSWebUI class
@ -35,7 +35,7 @@ async def get_lollms_webui_version():
async def restart_program():
"""Restart the program."""
# Stop the socketIO server
lollmsElfServer.socketio.stop()
lollmsElfServer.socketio.shutdown()
# Sleep for 1 second before rebooting
lollmsElfServer.socketio.sleep(1)
# Reboot the program
@ -55,7 +55,8 @@ async def update_software():
ASCIIColors.info("")
ASCIIColors.info("")
# Stop the socketIO server
lollmsElfServer.socketio.stop()
lollmsElfServer.socketio.shutdown()
# Run the update script using the provided arguments
lollmsElfServer.run_update_script(lollmsElfServer.args)
# Exit the program after successful update

@ -1 +1 @@
Subproject commit 01302d7d007ba3b67e145a469f40fb389e4ee48a
Subproject commit aad6e2e685eab6acc1d7d67621a1d1b8a9bb3169