Skip to content

Commit

Permalink
fix: use Store instad of Add for atomic int
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardolyn committed Mar 10, 2021
1 parent fdaccee commit 512cd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (s *PluginManager) Start() (err error) {
_ = p.Stop()
}
} else {
atomic.AddInt32(s.pluginsStarted, 1)
atomic.StoreInt32(s.pluginsStarted, 1)
}
return
}
Expand Down

0 comments on commit 512cd42

Please sign in to comment.