From 9846d5803953e047407290cb91fbc1ede7e7d3a1 Mon Sep 17 00:00:00 2001 From: Willa Drengwitz Date: Fri, 22 Feb 2019 14:50:55 -0500 Subject: [PATCH] Fixing a race condition --- adminz/adminz.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adminz/adminz.go b/adminz/adminz.go index e7aff3d..c936d73 100644 --- a/adminz/adminz.go +++ b/adminz/adminz.go @@ -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 }