Skip to content

Commit

Permalink
Fixing a race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Willa Drengwitz committed Feb 22, 2019
1 parent 02108c0 commit 9846d58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions adminz/adminz.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ func (a *Adminz) checkKillfiles() bool {
file.Close()
if a.Pause() {
log.Println("paused due to ", killfile)
} else {
//a.Pause() == false because a.running == false
log.Println("continue pause due to ", killfile)
}
return true
}
Expand Down

0 comments on commit 9846d58

Please sign in to comment.