mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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:
parent
b961e18fa0
commit
7ebe2e5b30
1 changed files with 1 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue