diff --git a/loopout.go b/loopout.go index f7da0de6..6fc74091 100644 --- a/loopout.go +++ b/loopout.go @@ -1147,7 +1147,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context, quitChan := make(chan bool, 1) defer func() { - quitChan <- true + close(quitChan) }() notifier := sweepbatcher.SpendNotifier{