Skip to content

Commit 3e6c215

Browse files
committed
f - Release pending events lock before handling events
1 parent 0e0b7a0 commit 3e6c215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3586,7 +3586,7 @@ where
35863586
// ChannelMonitors when clearing other events.
35873587
self.process_pending_monitor_events();
35883588

3589-
let mut pending_events = self.pending_events.lock().unwrap();
3589+
let mut pending_events = std::mem::replace(&mut *self.pending_events.lock().unwrap(), vec![]);
35903590
if pending_events.is_empty() {
35913591
return NotifyOption::SkipPersist;
35923592
}

0 commit comments

Comments
 (0)