mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
on disconnect runaway
trying to fix a runaway loop on disconnect
This commit is contained in:
@@ -351,6 +351,7 @@ async def main():
|
||||
await asyncio.wait([meshRxTask, watchdogTask, hamlibTask])
|
||||
else:
|
||||
await asyncio.wait([meshRxTask, watchdogTask])
|
||||
await asyncio.sleep(0.01)
|
||||
|
||||
try:
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -400,7 +400,7 @@ async def retry_interface(nodeID=1):
|
||||
except Exception as e:
|
||||
print(f"{log_timestamp()} System: Error opening interface1: {e}")
|
||||
await asyncio.sleep(5)
|
||||
await retry_interface(nodeID)
|
||||
await retry_interface(1)
|
||||
|
||||
try:
|
||||
if nodeID==2:
|
||||
@@ -415,7 +415,7 @@ async def retry_interface(nodeID=1):
|
||||
except Exception as e:
|
||||
print(f"{log_timestamp()} System: Error opening interface2: {e}")
|
||||
await asyncio.sleep(5)
|
||||
await retry_interface(nodeID)
|
||||
await retry_interface(2)
|
||||
|
||||
# this is a workaround because .localNode.getMetadata spits out a lot of debug info which cant be suppressed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user