autocommit
This commit is contained in:
@@ -22,6 +22,7 @@ import os
|
||||
async def maintain_connection_to_tello(state):
|
||||
state["connection"] = "NOK"
|
||||
while True:
|
||||
await asyncio.sleep(0.5)
|
||||
if state["connection"] == "NOK":
|
||||
await asyncio.to_thread(nmcli.connection.reload)
|
||||
resp = await asyncio.to_thread(release_and_renew, 20)
|
||||
|
||||
Reference in New Issue
Block a user