Skip to content

Commit

Permalink
Merge pull request #106 from lovoo/bugfix/dead-unlock
Browse files Browse the repository at this point in the history
fix embarrasing dead unlock
  • Loading branch information
SamiHiltunen committed Mar 14, 2018
2 parents e99e632 + d734d14 commit 3174a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ func (v *View) Stop() {
// do not allow any reinitialization
v.mInit.Lock()
if v.terminated {
return
v.mInit.Unlock()
return
}
v.terminated = true
v.mInit.Unlock()
Expand Down

0 comments on commit 3174a3d

Please sign in to comment.