Skip to content

Commit cd147dc

Browse files
committed
try to fix constructor of ThreadSafeBus
1 parent 62ecb4e commit cd147dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎can/thread_safe_bus.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class ThreadSafeBus(ObjectProxy, BusABC):
5050
_lock_recv = RLock()
5151

5252
def __init__(self, *args, **kwargs):
53+
super(ThreadSafeBus, self).__init__(Bus(*args, **kwargs))
54+
5355
# now, BusABC.send_periodic() does not need a lock anymore, but the
5456
# implementation still requires a context manager
5557
self.__wrapped__._lock_send_periodic = NullContextManager()

0 commit comments

Comments
 (0)