die after history
This commit is contained in:
parent
b2881a772a
commit
702e882b5f
10
main.go
10
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user