diff --git a/src/event_handlers/event_handler_base.py b/src/event_handlers/event_handler_base.py index 6260028..63e7919 100644 --- a/src/event_handlers/event_handler_base.py +++ b/src/event_handlers/event_handler_base.py @@ -7,9 +7,9 @@ class EventHandlerBase: def __init__(self, anchor): self.messaging = Messaging() self.anchor = anchor - self.messaging.subscribe(self.anchor) - self.messaging.subscribe('reset') - self.subscriptions = {self.anchor} + self.subscriptions = set() + self.subscribe(self.anchor) + self.subscribe('reset') self.messaging.register_callback(self.event_handler_callback) def event_handler_callback(self, msg_parts):