Fix hang when leaving process

This commit is contained in:
allegroai 2021-04-15 00:07:23 +03:00
parent 91d63df488
commit 6ed4826c65

View File

@ -99,7 +99,7 @@ class BackgroundReportService(BackgroundMonitor, AsyncManagerMixin):
events = [] events = []
while not self._queue.empty(): while not self._queue.empty():
try: try:
events.append(self._queue.get()) events.append(self._queue.get(block=False))
except Empty: except Empty:
break break
if not events: if not events: