mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-08 14:57:38 +02:00
contractcourt: fix concurrent access to launched
This commit is contained in:
@@ -1270,13 +1270,13 @@ func (h *htlcTimeoutResolver) resolveTimeoutTxOutput(op wire.OutPoint) error {
|
||||
// Launch creates an input based on the details of the outgoing htlc resolution
|
||||
// and offers it to the sweeper.
|
||||
func (h *htlcTimeoutResolver) Launch() error {
|
||||
if h.launched {
|
||||
if h.isLaunched() {
|
||||
h.log.Tracef("already launched")
|
||||
return nil
|
||||
}
|
||||
|
||||
h.log.Debugf("launching resolver...")
|
||||
h.launched = true
|
||||
h.markLaunched()
|
||||
|
||||
switch {
|
||||
// If we're already resolved, then we can exit early.
|
||||
|
Reference in New Issue
Block a user