Skip to content

Commit

Permalink
Added missing parameter (#112)
Browse files Browse the repository at this point in the history
Fix exception thrown when calling TransportLayer.stop_sending
  • Loading branch information
pylessard authored Jan 14, 2024
1 parent 88fa583 commit 1daf616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isotp/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 1daf616

Please sign in to comment.