mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-07 14:10:07 +00:00
allow add middleware after app has started
this should completely fix "Cannot add middleware after an application has started" which can occur due to a race condition
This commit is contained in:
@@ -50,6 +50,7 @@ def check_versions():
|
||||
|
||||
def initialize():
|
||||
from modules import initialize_util
|
||||
initialize_util.allow_add_middleware_after_start()
|
||||
initialize_util.fix_torch_version()
|
||||
initialize_util.fix_pytorch_lightning()
|
||||
initialize_util.fix_asyncio_event_loop_policy()
|
||||
|
||||
Reference in New Issue
Block a user