loopout: close sweepbatcher quitChan

This is needed because sweepbatcher can use this channel in multiple
select statements to unblock itself if the caller cancels.
This commit is contained in:
Boris Nagaev 2025-04-30 00:07:04 -03:00
parent b961e18fa0
commit 7ebe2e5b30
No known key found for this signature in database

View file

@ -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{