This commit is contained in:
parent
b6483b7f6d
commit
6f673ba7f2
1 changed files with 2 additions and 2 deletions
|
|
@ -30,10 +30,10 @@ impl PingTracker {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn received(&mut self, id: u32) -> Option<Duration> {
|
fn received(&mut self, id: u32) -> Option<Duration> {
|
||||||
if !self
|
if self
|
||||||
.pending
|
.pending
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.is_some_and(|(pending, _)| *pending == id)
|
.is_none_or(|(pending, _)| *pending != id)
|
||||||
{
|
{
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue