Skip to content

Commit 161fff2

Browse files
author
Antoine Riard
committed
Add pending_events deadlock detection in handle_error
1 parent c325279 commit 161fff2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ macro_rules! handle_error {
767767
// In testing, ensure there are no deadlocks where the lock is already held upon
768768
// entering the macro.
769769
assert!($self.channel_state.try_lock().is_ok());
770+
assert!($self.pending_events.try_lock().is_ok());
770771
}
771772

772773
let mut msg_events = Vec::with_capacity(2);

0 commit comments

Comments
 (0)