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 {
|
if *history {
|
||||||
fmt.Printf("Retrieving chat.\n")
|
fmt.Printf("Retrieving chat.\n")
|
||||||
go getHistory(client)
|
getHistory(client)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("Started !")
|
|
||||||
go ListenCW(client)
|
go ListenCW(client)
|
||||||
|
fmt.Println("Started !")
|
||||||
|
|
||||||
log.Println("Forever.")
|
|
||||||
// Main loop
|
// Main loop
|
||||||
for {
|
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
log.Println("Alive.")
|
|
||||||
}
|
|
||||||
forever := make(chan bool)
|
forever := make(chan bool)
|
||||||
<-forever
|
<-forever
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user