Skip to content

Commit 12e9124

Browse files
authored
best effort close client (#190)
1 parent da38704 commit 12e9124

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/client_impl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,9 +674,9 @@ impl Drop for Client {
674674
debug_assert!(!self.raw().is_null()); // Rep invariant
675675
// Close the client
676676
sleep_on_test();
677-
let res = unsafe { j::jack_client_close(self.raw()) }; // close the client
677+
let _res = unsafe { j::jack_client_close(self.raw()) }; // best effort: close the client
678678
sleep_on_test();
679-
assert_eq!(res, 0);
679+
//assert_eq!(res, 0); //do not assert here. connection could be broken
680680
self.0 = ptr::null_mut();
681681
}
682682
}

0 commit comments

Comments
 (0)