contractcourt: fix concurrent access to launched
This commit is contained in:
8 files changed
+27
-14
No files matched your search
@@ -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