From f63b294b873c0a6950bed2eeb66aa9bf1fa306b6 Mon Sep 17 00:00:00 2001 From: EyeDeck Date: Thu, 25 Aug 2022 08:31:44 -0400 Subject: [PATCH] add missing selfs --- webui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui.py b/webui.py index 48e74f7..cf6f13a 100644 --- a/webui.py +++ b/webui.py @@ -1022,10 +1022,10 @@ class ServerLauncher(threading.Thread): def run(self): loop = asyncio.new_event_loop() asyncio.set_event_loop(loop) - demo.launch(show_error=True, server_name='0.0.0.0') + self.demo.launch(show_error=True, server_name='0.0.0.0') def stop(self): - demo.close() # this tends to hang + self.demo.close() # this tends to hang server_thread = ServerLauncher(demo) server_thread.start()