From 52903b8dd02ca94b12dfb837ae0b7f5087361b6d Mon Sep 17 00:00:00 2001
From: Nick White <git@njw.name>
Date: Mon, 30 Mar 2020 13:51:46 +0100
Subject: [bookpipeline] Fix hang bug when restarting shutdown timer

---
 cmd/bookpipeline/main.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'cmd')

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)
 }
 
-- 
cgit v1.2.1-24-ge1ad