Skip to content

Commit 2dc6821

Browse files
acolombjonastittmannpinion
authored andcommitted
Implement abstract method can.Listener.stop() in MessageListener. (canopen-python#422)
(cherry picked from commit a973919)
1 parent 011174c commit 2dc6821

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

canopen/network.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ def on_message_received(self, msg):
402402
# Exceptions in any callbaks should not affect CAN processing
403403
logger.error(str(e))
404404

405+
def stop(self) -> None:
406+
"""Override abstract base method to release any resources."""
407+
405408

406409
class NodeScanner:
407410
"""Observes which nodes are present on the bus.

0 commit comments

Comments
 (0)