mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Reformat sniffer_task.rs.
This commit is contained in:
parent
eeb11d6851
commit
d8b0f973b0
1 changed files with 22 additions and 25 deletions
|
@ -35,11 +35,8 @@ impl SnifferManager {
|
||||||
loop {
|
loop {
|
||||||
match self.data_receiver.try_recv() {
|
match self.data_receiver.try_recv() {
|
||||||
Ok(snif_data) => next_rx.send(snif_data),
|
Ok(snif_data) => next_rx.send(snif_data),
|
||||||
Err(e) => {
|
Err(Disconnected) => break,
|
||||||
if e == Disconnected {
|
Err(_) => (),
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue