diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-12-24 19:54:09 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-12-24 19:54:09 +0100 |
| commit | c7d7e516528c9cef0caa8f5957d1b7c5a4dabd04 (patch) | |
| tree | 23a7f7684579fa668745a6431bc9d9657c4cbed4 /src_py | |
| parent | 2c3bacd1ed7f68e407766d96fa3da72b08674d21 (diff) | |
requirements update
Diffstat (limited to 'src_py')
| -rw-r--r-- | src_py/opcut/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src_py/opcut/main.py b/src_py/opcut/main.py index b428950..df9987f 100644 --- a/src_py/opcut/main.py +++ b/src_py/opcut/main.py @@ -116,7 +116,7 @@ def generate_output(output_type: common.OutputType, def server(host: str, port: int): """Run server""" - aio.init_asyncio() + loop = aio.init_asyncio() async def run(): server = await opcut.server.create(host, port) @@ -128,7 +128,7 @@ def server(host: str, await aio.uncancellable(server.async_close()) with contextlib.suppress(asyncio.CancelledError): - aio.run_asyncio(run()) + aio.run_asyncio(run(), loop=loop) if __name__ == '__main__': |
