Skip to content

Commit 944d928

Browse files
committed
[fuzz] Fix hang due to double-lock in full_stack_target
1 parent c6bec81 commit 944d928

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzz/src/full_stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ pub fn do_test(data: &[u8], logger: &Arc<dyn Logger>) {
528528
}
529529
},
530530
11 => {
531-
let mut txn = broadcast.txn_broadcasted.lock().unwrap();
531+
let mut txn = broadcast.txn_broadcasted.lock().unwrap().split_off(0);
532532
if !txn.is_empty() {
533533
loss_detector.connect_block(&txn[..]);
534534
for _ in 2..100 {

0 commit comments

Comments
 (0)