autocommit

This commit is contained in:
ALIHAN DIKEL
2024-10-29 22:34:24 +03:00
parent 1c1603f458
commit 4eea289824

View File

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