Skip to content

Commit

Permalink
best effort close client (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
srperens authored Sep 12, 2024
1 parent da38704 commit 12e9124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/client_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ impl Drop for Client {
debug_assert!(!self.raw().is_null()); // Rep invariant
// Close the client
sleep_on_test();
let res = unsafe { j::jack_client_close(self.raw()) }; // close the client
let _res = unsafe { j::jack_client_close(self.raw()) }; // best effort: close the client
sleep_on_test();
assert_eq!(res, 0);
//assert_eq!(res, 0); //do not assert here. connection could be broken
self.0 = ptr::null_mut();
}
}
Expand Down

0 comments on commit 12e9124

Please sign in to comment.