add lock to OutputState.Equal
This commit is contained in:
parent
1235623fad
commit
f1b44e36b4
|
@ -814,6 +814,8 @@ func (s *OutputState) Equal(other *OutputState) bool {
|
|||
if s == nil || other == nil {
|
||||
return false
|
||||
}
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
|
||||
if s.Type != other.Type {
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue