Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
fix lock
Browse files Browse the repository at this point in the history
  • Loading branch information
bootjp committed Jul 16, 2020
1 parent fba234e commit 8d64227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vrc_auto_rejoin_tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (v *VRCAutoRejoinTool) Stop() error {
v.lock.Lock()
defer v.lock.Unlock()
go v.playAudioFile("stop.wav")
v.done <- true
close(v.done)
v.running = false

return nil
Expand Down Expand Up @@ -414,7 +414,7 @@ func (v *VRCAutoRejoinTool) processWatcher() {
}
time.Sleep(30 * time.Second)
v.lock.Unlock()
v.done <- true
close(v.done)
v.running = false
return
}
Expand Down Expand Up @@ -478,7 +478,7 @@ func (v *VRCAutoRejoinTool) logInspector(tail *tail.Tail, at time.Time) {

time.Sleep(30 * time.Second)
v.running = false
v.done <- true
close(v.done)
v.lock.Unlock()
tail.Cleanup()
return
Expand Down

0 comments on commit 8d64227

Please sign in to comment.