diff options
| author | Alejandro Soto <alejandro@34project.org> | 2021-12-27 08:27:35 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2021-12-28 19:43:45 -0600 |
| commit | f23554447c5d75e828eaf67a8b15d73ad7005420 (patch) | |
| tree | 2bd4b5dd7688707b76fd2c1716e681e48e4eecff /examples | |
| parent | 80fc84344e612a979d1eb048b2c02c41417b36be (diff) | |
Handle destroy requests
This is a temporary fix for what appears to be a Tokio issue. See
tokio-rs/tokio#4349.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ext2.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/ext2.rs b/examples/ext2.rs index 5552a58..4c55a64 100644 --- a/examples/ext2.rs +++ b/examples/ext2.rs @@ -16,6 +16,7 @@ use std::{ ffi::{CStr, OsStr}, fs::File, mem::size_of, + ops::ControlFlow, os::unix::{ffi::OsStrExt, io::AsRawFd}, path::{Path, PathBuf}, time::{Duration, UNIX_EPOCH}, @@ -502,7 +503,10 @@ async fn main_loop(session: Start, fs: Ext2) -> FuseResult<()> { } }); - result.await?; + match result.await? { + ControlFlow::Break(()) => break Ok(()), + ControlFlow::Continue(()) => continue, + } } } |
