@@ -572,6 +572,7 @@ <h1 class="title">Module <code>state_signals</code></h1>
572572 raise redis.ConnectionError
573573 self.subscriber = self.redis.pubsub(ignore_subscribe_messages=True)
574574 self.subscriber.subscribe("event-signal-pubsub")
575+ self.channel = self.subscriber.listen()
575576 self.responder_id = responder_name + "-" + str(uuid.uuid4()) + "-resp"
576577 self._locked_id = None
577578 self._locked_tag = None
@@ -622,7 +623,7 @@ <h1 class="title">Module <code>state_signals</code></h1>
622623 Yield all legal published signals. If a specific tag/published_id
623624 was locked, only signals with those matching values will be yielded.
624625 """
625- for item in self.subscriber.listen() :
626+ for item in self.channel :
626627 data = self._parse_signal(item)
627628 if data and self._check_target(data):
628629 signal = Signal(**data)
@@ -1585,6 +1586,7 @@ <h3>Methods</h3>
15851586 raise redis.ConnectionError
15861587 self.subscriber = self.redis.pubsub(ignore_subscribe_messages=True)
15871588 self.subscriber.subscribe("event-signal-pubsub")
1589+ self.channel = self.subscriber.listen()
15881590 self.responder_id = responder_name + "-" + str(uuid.uuid4()) + "-resp"
15891591 self._locked_id = None
15901592 self._locked_tag = None
@@ -1635,7 +1637,7 @@ <h3>Methods</h3>
16351637 Yield all legal published signals. If a specific tag/published_id
16361638 was locked, only signals with those matching values will be yielded.
16371639 """
1638- for item in self.subscriber.listen() :
1640+ for item in self.channel :
16391641 data = self._parse_signal(item)
16401642 if data and self._check_target(data):
16411643 signal = Signal(**data)
@@ -1712,7 +1714,7 @@ <h3>Methods</h3>
17121714 Yield all legal published signals. If a specific tag/published_id
17131715 was locked, only signals with those matching values will be yielded.
17141716 """
1715- for item in self.subscriber.listen() :
1717+ for item in self.channel :
17161718 data = self._parse_signal(item)
17171719 if data and self._check_target(data):
17181720 signal = Signal(**data)
0 commit comments