Never send an an empty set of events
This commit is contained in:
parent
bddf827bc1
commit
8a61d5059b
1 changed files with 3 additions and 0 deletions
|
@ -461,6 +461,9 @@ impl Telemetry {
|
|||
let mut events = mem::take(&mut state.events_queue);
|
||||
state.flush_events_task.take();
|
||||
drop(state);
|
||||
if events.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
||||
let this = self.clone();
|
||||
self.executor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue