From 1daf6161575f26ed993171221404cbeb9b15a5b0 Mon Sep 17 00:00:00 2001 From: Pier-Yves Lessard Date: Sun, 14 Jan 2024 16:30:15 -0500 Subject: [PATCH] Added missing parameter (#112) Fix exception thrown when calling TransportLayer.stop_sending --- isotp/protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isotp/protocol.py b/isotp/protocol.py index 2891672..f197fe7 100755 --- a/isotp/protocol.py +++ b/isotp/protocol.py @@ -1318,7 +1318,7 @@ def stop_sending(self) -> None: """ self._stop_sending(success=False) - def _stop_sending(self, success) -> None: + def _stop_sending(self, success: bool) -> None: if self.active_send_request is not None: self.active_send_request.complete(success) self.active_send_request = None @@ -1632,7 +1632,7 @@ def stop_sending(self): while self.events.reset_tx.is_set(): time.sleep(0.05) else: - self._stop_sending() + self._stop_sending(success=False) @is_documented_by(TransportLayerLogic.stop_receiving) def stop_receiving(self):