Merge pull request #21 from EyeDeck/master

fix missing 'self's
This commit is contained in:
hlky 2022-08-25 14:13:26 +01:00 committed by GitHub
commit f3fbee09db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()