name client tasks

and then realize that PyCharm's ConcurrencyDiagram is currently broken and doesn't show the names
This commit is contained in:
Fabian Dill 2020-04-30 04:09:19 +02:00
parent a3c1e902d4
commit 47784d2632
1 changed files with 3 additions and 3 deletions

View File

@ -1116,14 +1116,14 @@ async def main():
ctx = Context(args.snes, args.connect, args.password, args.founditems)
input_task = asyncio.create_task(console_loop(ctx))
input_task = asyncio.create_task(console_loop(ctx), name="Input")
await snes_connect(ctx, ctx.snes_address)
if ctx.server_task is None:
ctx.server_task = asyncio.create_task(server_loop(ctx))
ctx.server_task = asyncio.create_task(server_loop(ctx), name="ServerLoop")
watcher_task = asyncio.create_task(game_watcher(ctx))
watcher_task = asyncio.create_task(game_watcher(ctx), name="GameWatcher")
await ctx.exit_event.wait()