Bail out of compensate_dropped if no events were dropped
This commit is contained in:
parent
fc27acc715
commit
591d1428c2
1 changed files with 2 additions and 0 deletions
|
@ -838,6 +838,8 @@ impl Device {
|
|||
}
|
||||
}
|
||||
self.pending_events.truncate(prev_report);
|
||||
} else {
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
// Alright, pending_events is in a sane state. Now, let's sync the local state. We will
|
||||
|
|
Loading…
Reference in a new issue