From 31b9ceb85575a89f41c18ce2c3559dfbf5c0bb62 Mon Sep 17 00:00:00 2001 From: FrankReh Date: Fri, 28 Oct 2022 19:35:17 -0400 Subject: [PATCH] driver: ignore errors from uring while cleaning up (#154) 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. --- src/driver/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/mod.rs b/src/driver/mod.rs index 29db38e3..23e97d80 100644 --- a/src/driver/mod.rs +++ b/src/driver/mod.rs @@ -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(); } }