mirror of
https://github.com/markqvist/rnsh.git
synced 2025-02-25 09:21:15 -05:00
Allow retry timer callback to signal complete
This commit is contained in:
parent
a9f8ede4fe
commit
2c61fdf391
@ -493,8 +493,7 @@ def _subproc_data_ready(link: RNS.Link, chars_available: int):
|
|||||||
_retry_timer.begin(try_limit=15,
|
_retry_timer.begin(try_limit=15,
|
||||||
wait_delay=max(link.rtt * 5 if link.rtt is not None else 1, 1),
|
wait_delay=max(link.rtt * 5 if link.rtt is not None else 1, 1),
|
||||||
try_callback=functools.partial(send, False),
|
try_callback=functools.partial(send, False),
|
||||||
timeout_callback=functools.partial(send, True),
|
timeout_callback=functools.partial(send, True))
|
||||||
tag=None)
|
|
||||||
else:
|
else:
|
||||||
log.debug(f"Notification already pending for link {link}")
|
log.debug(f"Notification already pending for link {link}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user