mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 18:27:43 +02:00
contractcourt: fix concurrent access to launched
This commit is contained in:
@@ -130,13 +130,13 @@ var _ ContractResolver = (*breachResolver)(nil)
|
||||
//
|
||||
// TODO(yy): implement it once the outputs are offered to the sweeper.
|
||||
func (b *breachResolver) Launch() error {
|
||||
if b.launched {
|
||||
if b.isLaunched() {
|
||||
b.log.Tracef("already launched")
|
||||
return nil
|
||||
}
|
||||
|
||||
b.log.Debugf("launching resolver...")
|
||||
b.launched = true
|
||||
b.markLaunched()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user