Skip to content

Commit 31b9ceb

Browse files
authored
driver: ignore errors from uring while cleaning up (tokio-rs#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.
1 parent 3c40c1a commit 31b9ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/driver/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl Drop for Driver {
126126
while self.num_operations() > 0 {
127127
// If waiting fails, ignore the error. The wait will be attempted
128128
// again on the next loop.
129-
let _ = self.wait().unwrap();
129+
_ = self.wait();
130130
self.tick();
131131
}
132132
}

0 commit comments

Comments
 (0)