Skip to content

Commit

Permalink
fixup: thing
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Dec 19, 2024
1 parent d46df19 commit b13dffa
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions talpid-wireguard/src/connectivity/pinger/android.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ impl Pinger {
}
}

// FIXME
#[async_trait::async_trait]
impl super::Pinger for Pinger {
// Send an ICMP packet without waiting for a reply
Expand All @@ -53,28 +52,7 @@ impl super::Pinger for Pinger {
}

async fn reset(&mut self) {
/*let processes = std::mem::take(&mut self.processes);
for proc in processes {
if proc
.try_wait()
.map(|maybe_stopped| maybe_stopped.is_none())
.unwrap_or(false)
{
if let Err(err) = proc.kill() {
log::error!("Failed to kill ping process: {}", err);
}
}
}*/
}
}

impl Drop for Pinger {
fn drop(&mut self) {
/*for child in self.processes.iter_mut() {
if let Err(e) = child.kill() {
log::error!("Failed to kill ping process: {}", e);
}
}*/
self.processes.clear();
}
}

Expand Down

0 comments on commit b13dffa

Please sign in to comment.