summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-05-22 18:14:52 +0100
committerNick White <git@njw.name>2020-05-22 18:14:52 +0100
commit519244c01ff6a5cd3550fc44656b6eb741b99a8a (patch)
tree21836387e5223772c2c339ca1d7ae6c3ba281070
parent0547ff4c377ec2905f717969f07779208b5bded4 (diff)
Fix bookpipeline failing if shutdown option isnt used
-rw-r--r--cmd/bookpipeline/main.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go
index 3b9befb..9618e93 100644
--- a/cmd/bookpipeline/main.go
+++ b/cmd/bookpipeline/main.go
@@ -727,9 +727,7 @@ func main() {
if !*noanalyse {
checkAnalyseQueue = time.After(0)
}
- if *autoshutdown {
- shutdownIfQuiet = time.NewTimer(TimeBeforeShutdown)
- }
+ shutdownIfQuiet = time.NewTimer(TimeBeforeShutdown)
savelognow = time.NewTicker(LogSaveTime)
for {