diff options
author | Nick White <git@njw.name> | 2020-03-30 13:51:46 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-03-30 13:51:46 +0100 |
commit | 52903b8dd02ca94b12dfb837ae0b7f5087361b6d (patch) | |
tree | ab314626c6535ed89ed0d3c9789fa8aa511c4d65 | |
parent | d2a9a6ad2678cc401b60c48afb2211b5cf1e852e (diff) |
[bookpipeline] Fix hang bug when restarting shutdown timer
-rw-r--r-- | cmd/bookpipeline/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index 24645a6..daa6ab9 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -636,9 +636,9 @@ func stopTimer(t *time.Timer) { } func restartTimer(t *time.Timer) { - if !t.Stop() { - <-t.C - } + //if !t.Stop() { + // <-t.C + //} t.Reset(TimeBeforeShutdown) } |