Skip to content

Commit d13c5cf

Browse files
author
Antoine Riard
committed
Add pending_events deadlock detection in handle_error
1 parent 6ce7f3e commit d13c5cf

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
@@ -824,6 +824,7 @@ macro_rules! handle_error {
824824
// In testing, ensure there are no deadlocks where the lock is already held upon
825825
// entering the macro.
826826
assert!($self.channel_state.try_lock().is_ok());
827+
assert!($self.pending_events.try_lock().is_ok());
827828
}
828829

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

0 commit comments

Comments
 (0)