fixed a bug with sorting

This commit is contained in:
UpstreamData
2022-05-30 14:19:57 -06:00
parent 0082037f45
commit 88f8ff10b7

View File

@@ -197,8 +197,9 @@ async def ui():
asyncio.create_task(btn_command(_ips, value["cmd_txt"]))
if event == "cmd_listen":
asyncio.create_task(btn_listen())
if event.endswith("cancel_listen"):
asyncio.create_task(btn_cancel_listen())
if not isinstance(event, tuple):
if event.endswith("cancel_listen"):
asyncio.create_task(btn_cancel_listen())
if event == "__TIMEOUT__":
await asyncio.sleep(0)