tun_interface set_up fix hang
Co-authored-by: Conrad Kramer <conrad@conradkramer.com>
This commit is contained in:
parent
80ae0f9d0f
commit
5c6a705d7f
1 changed files with 1 additions and 3 deletions
|
|
@ -17,9 +17,7 @@ impl TunInterface {
|
||||||
|
|
||||||
#[instrument]
|
#[instrument]
|
||||||
pub async fn set_up(&self, up: bool) -> io::Result<()> {
|
pub async fn set_up(&self, up: bool) -> io::Result<()> {
|
||||||
let mut guard = self.inner.readable().await?;
|
self.inner.get_ref().set_up(up)
|
||||||
guard.try_io(|inner| inner.get_ref().set_up(up));
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument]
|
#[instrument]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue