Skip to content

Commit

Permalink
f Avoid racing event queue
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Apr 21, 2023
1 parent 4b4fae0 commit a5358d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1717,13 +1717,12 @@ macro_rules! process_events_body {
let mut pending_events = $self.pending_events.lock().unwrap();
pending_events.drain(..num_events);
processed_all_events = pending_events.is_empty();
$self.pending_events_processor.store(false, Ordering::Release);
}

if result == NotifyOption::DoPersist {
$self.persistence_notifier.notify();
}

$self.pending_events_processor.store(false, Ordering::Release);
}
}
}
Expand Down

0 comments on commit a5358d0

Please sign in to comment.