mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-10 07:21:01 -04:00
Faster link cleanup on close
This commit is contained in:
parent
b5d854a55c
commit
48be5f65d8
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,8 @@ class Link:
|
|||
and will be torn down.
|
||||
"""
|
||||
|
||||
WATCHDOG_MAX_SLEEP = 1
|
||||
|
||||
PENDING = 0x00
|
||||
HANDSHAKE = 0x01
|
||||
ACTIVE = 0x02
|
||||
|
@ -808,6 +810,7 @@ class Link:
|
|||
self.teardown()
|
||||
sleep_time = 0.1
|
||||
|
||||
sleep_time = min(sleep_time, Link.WATCHDOG_MAX_SLEEP)
|
||||
sleep(sleep_time)
|
||||
|
||||
if not self.__track_phy_stats:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue