From 8ec95a6dc9ce4c88942680baa76e4e7783b8917e Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Thu, 5 Sep 2024 00:06:35 +0800 Subject: [PATCH] fix Session::drop issues --- src/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.rs b/src/session.rs index 1c123f7..e39f03f 100644 --- a/src/session.rs +++ b/src/session.rs @@ -155,7 +155,7 @@ impl Session { impl Drop for Session { fn drop(&mut self) { - if let Err(err) = self.shutdown_event.close_handle() { + if let Err(err) = self.shutdown() { log::error!("Failed to close handle of shutdown event: {:?}", err); }