contractcourt: fix concurrent access to launched

This commit is contained in:
yyforyongyu committed 2024-12-20 17:54:06 +08:00
1 parent 4f5ccb8650
commit d2e81a19fd
8 files changed
+27 -14

No files matched your search

@@ -40,7 +40,7 @@ func newOutgoingContestResolver(res lnwallet.OutgoingHtlcResolution,
func (h *htlcOutgoingContestResolver) Launch() error {
// NOTE: we don't mark this resolver as launched as the inner resolver
// will set it when it's launched.
if h.launched {
if h.isLaunched() {
h.log.Tracef("already launched")
return nil
}