Skip to content

Commit

Permalink
driver: ignore errors from uring while cleaning up (#154)
Browse files Browse the repository at this point in the history
In the driver drop code, don't assume the call to wait for
a completion will always succeed. This assumption can lead
to a panic as we were unwrapping an error result.
  • Loading branch information
FrankReh authored Oct 28, 2022
1 parent 3c40c1a commit 31b9ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl Drop for Driver {
while self.num_operations() > 0 {
// If waiting fails, ignore the error. The wait will be attempted
// again on the next loop.
let _ = self.wait().unwrap();
_ = self.wait();
self.tick();
}
}
Expand Down

0 comments on commit 31b9ceb

Please sign in to comment.