Skip to content

Commit a973919

Browse files
authored
Implement abstract method can.Listener.stop() in MessageListener. (#422)
1 parent 713f005 commit a973919

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
@@ -363,6 +363,9 @@ def on_message_received(self, msg):
363363
# Exceptions in any callbaks should not affect CAN processing
364364
logger.error(str(e))
365365

366+
def stop(self) -> None:
367+
"""Override abstract base method to release any resources."""
368+
366369

367370
class NodeScanner:
368371
"""Observes which nodes are present on the bus.

0 commit comments

Comments
 (0)