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