Skip to content

Commit

Permalink
fixed bug released Lock instead of ReadLock
Browse files Browse the repository at this point in the history
  • Loading branch information
dh1tw committed Dec 12, 2017
1 parent ffbe591 commit f31d4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rotator/yaesu/yaesu.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (r *Yaesu) setValueAndCallEvent(ev rotator.Event, value int) {
// Name returns the name of the rotator
func (r *Yaesu) Name() string {
r.RLock()
defer r.Unlock()
defer r.RUnlock()
return r.name
}

Expand Down

0 comments on commit f31d4d0

Please sign in to comment.