We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 755157e commit 988b36fCopy full SHA for 988b36f
1 file changed
varys/producer.py
@@ -105,9 +105,13 @@ def run(self):
105
except Exception:
106
self._log.exception("Producer caught exception:")
107
108
- if self._stopping or self._reconnect_wait < 0:
+ if self._stopping:
109
self._connection.process_data_events(time_limit=0)
110
break
111
+ elif self._reconnect_wait < 0:
112
+ # connection has been broken but we don't want to reconnect
113
+ # so there's no connection with data events to process
114
+ break
115
else:
116
time.sleep(self._reconnect_wait)
117
continue
0 commit comments