Skip to content

Commit 72c22cc

Browse files
committed
f check panic
1 parent 577dd6d commit 72c22cc

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
@@ -1199,6 +1199,9 @@ mod tests {
11991199

12001200
impl Drop for ManualRouter {
12011201
fn drop(&mut self) {
1202+
if std::thread::panicking() {
1203+
return;
1204+
}
12021205
assert!(self.0.lock().unwrap().is_empty());
12031206
}
12041207
}

0 commit comments

Comments
 (0)