From 702e882b5f58be921b3d23363cb9145316bb6b11 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 4 May 2019 12:50:04 +0800 Subject: [PATCH] die after history --- main.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 4a8e387..ea13f17 100644 --- a/main.go +++ b/main.go @@ -113,18 +113,14 @@ func main() { if *history { fmt.Printf("Retrieving chat.\n") - go getHistory(client) + getHistory(client) + return } - fmt.Println("Started !") go ListenCW(client) + fmt.Println("Started !") - log.Println("Forever.") // Main loop - for { - time.Sleep(1 * time.Second) - log.Println("Alive.") - } forever := make(chan bool) <-forever }