Skip to content

Commit 7ebe2e5

Browse files
committed
loopout: close sweepbatcher quitChan
This is needed because sweepbatcher can use this channel in multiple select statements to unblock itself if the caller cancels.
1 parent b961e18 commit 7ebe2e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loopout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context,
11471147
quitChan := make(chan bool, 1)
11481148

11491149
defer func() {
1150-
quitChan <- true
1150+
close(quitChan)
11511151
}()
11521152

11531153
notifier := sweepbatcher.SpendNotifier{

0 commit comments

Comments
 (0)