forked from platypush/platypush
Delete pubsub closure to _pubsub_close()
.
The Redis channel may be closed, and in that case we need to handle the exception instead of throwing it - which causes the upstream Tornado worker to fail too.
This commit is contained in:
parent
6fe1ed44ad
commit
bf1b8aaf70
1 changed files with 1 additions and 2 deletions
|
@ -65,8 +65,7 @@ class PubSubMixin:
|
||||||
with self._pubsub_lock:
|
with self._pubsub_lock:
|
||||||
# Close and free the pub/sub object if it has no active subscriptions.
|
# Close and free the pub/sub object if it has no active subscriptions.
|
||||||
if self._pubsub is not None and len(self._subscriptions) == 0:
|
if self._pubsub is not None and len(self._subscriptions) == 0:
|
||||||
self._pubsub.close()
|
self._pubsub_close()
|
||||||
self._pubsub = None
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _serialize(data: MessageType) -> bytes:
|
def _serialize(data: MessageType) -> bytes:
|
||||||
|
|
Loading…
Reference in a new issue