about summary refs log tree commit diff stats
path: root/svc/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'svc/init.go')
-rw-r--r--svc/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/svc/init.go b/svc/init.go
index 1d8b0c6..b5f4061 100644
--- a/svc/init.go
+++ b/svc/init.go
@@ -46,7 +46,7 @@ var (
 var confObj = &Configuration{}
 
 // Signals to close the log file
-var closeLog = make(chan bool, 1)
+var closeLog = make(chan struct{}, 1)
 
 // Used to transmit database pointer
 var dbChan = make(chan dbase, 1)
@@ -140,7 +140,7 @@ func watchForInterrupt() {
 			confObj.Mu.RLock()
 			log.Printf("Closed database connection to %v\n", confObj.DBPath)
 			if !confObj.StdoutLogging {
-				closeLog <- true
+				closeLog <- struct{}{}
 			}
 			confObj.Mu.RUnlock()