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 = []
while not self._queue.empty():
try:
events.append(self._queue.get())
events.append(self._queue.get(block=False))
except Empty:
break
if not events: