Skip to content

Commit b920906

Browse files
committed
f check panic
1 parent 4dd7404 commit b920906

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning-invoice/src/payment.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,9 @@ mod tests {
11871187

11881188
impl Drop for ManualRouter {
11891189
fn drop(&mut self) {
1190+
if std::thread::panicking() {
1191+
return;
1192+
}
11901193
assert!(self.0.lock().unwrap().is_empty());
11911194
}
11921195
}

0 commit comments

Comments
 (0)