Correct rescheduling of ExternalStatisticsTask (#59076)

This commit is contained in:
Erik Montnemery 2021-11-04 18:35:43 +01:00 committed by GitHub
parent c3fc19915e
commit 491e62792b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -798,7 +798,7 @@ class Recorder(threading.Thread):
if statistics.add_external_statistics(self, metadata, stats): if statistics.add_external_statistics(self, metadata, stats):
return return
# Schedule a new statistics task if this one didn't finish # Schedule a new statistics task if this one didn't finish
self.queue.put(StatisticsTask(metadata, stats)) self.queue.put(ExternalStatisticsTask(metadata, stats))
def _process_one_event(self, event): def _process_one_event(self, event):
"""Process one event.""" """Process one event."""