add lock to OutputState.Equal

This commit is contained in:
James Bardin 2016-08-31 16:14:37 -04:00
parent 1235623fad
commit f1b44e36b4
1 changed files with 2 additions and 0 deletions

View File

@ -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