mirror of
https://github.com/markqvist/rnsh.git
synced 2025-05-03 23:05:18 -04:00
Allow retry timer callback to signal complete
This commit is contained in:
parent
a9f8ede4fe
commit
2c61fdf391
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue