Skip to content

Commit 3896d64

Browse files
committed
Ignore StreamLostErrors during consumer shutdown
1 parent 89c0e26 commit 3896d64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

neon_mq_connector/consumers/blocking_consumer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def run(self):
114114
if self._is_consumer_alive:
115115
self._close_connection()
116116
self.error_func(self, e)
117+
except pika.exceptions.StreamLostError as e:
118+
if self._is_consumer_alive:
119+
self.error_func(self, e)
117120
except Exception as e:
118121
if self._is_consumer_alive:
119122
self._close_connection()

0 commit comments

Comments
 (0)