diff --git a/src/timer/async_tokio1.rs b/src/timer/async_tokio1.rs index f469c42..6b4914a 100644 --- a/src/timer/async_tokio1.rs +++ b/src/timer/async_tokio1.rs @@ -24,6 +24,14 @@ impl crate::std::os::unix::io::AsRawFd for RawTimer { } } +impl Drop for RawTimer { + fn drop(&mut self) { + unsafe { + libc::close(self.0) + } + } +} + #[cfg(target_os = "android")] mod sys { #[repr(C)]