Moved error handling for failed message send.

This commit is contained in:
mdosch 2018-07-15 21:00:16 +02:00
parent c38ad204d1
commit bf456cd5c7

View file

@ -141,9 +141,9 @@ func main() {
if output != "" {
_, err = client.Send(xmpp.Chat{Remote: config.Muc, Type: "groupchat", Text: output})
}
if err != nil {
log.Fatal(err)
if err != nil {
log.Fatal(err)
}
}
}
time.Sleep(30 * time.Second)