Skip to content

Commit

Permalink
fix Session::drop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Sep 4, 2024
1 parent 70e4b2d commit 8ec95a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8ec95a6

Please sign in to comment.