forked from p15670423/monkey
agent: Fully flush BatchingTelemetryMessenger queue before stopping
This commit is contained in:
parent
7e3eef90cb
commit
543f0031a2
|
@ -57,7 +57,7 @@ class BatchingTelemetryMessenger(ITelemetryMessenger):
|
||||||
def _manage_telemetry_batches(self):
|
def _manage_telemetry_batches(self):
|
||||||
self._reset()
|
self._reset()
|
||||||
|
|
||||||
while self._should_run_batch_thread:
|
while self._should_run_batch_thread or not self._queue.empty():
|
||||||
try:
|
try:
|
||||||
telemetry = self._queue.get(block=True, timeout=self._period / WAKES_PER_PERIOD)
|
telemetry = self._queue.get(block=True, timeout=self._period / WAKES_PER_PERIOD)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue