X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=go%2Fr3-netstatus%2Fmain.go;fp=go%2Fr3-netstatus%2Fmain.go;h=0bb8d0e24bf2fc52969d36280fffd4a892c4fa91;hp=c565df2aba9df6b73526de135a983fd35e00dec7;hb=4e6f754877a7061afe6ef56b21585c778db5b2c9;hpb=39422bed6ea1746af53efd33311634b3f27dca01 diff --git a/go/r3-netstatus/main.go b/go/r3-netstatus/main.go index c565df2..0bb8d0e 100644 --- a/go/r3-netstatus/main.go +++ b/go/r3-netstatus/main.go @@ -121,7 +121,7 @@ func EventToXMPP(bot *r3xmppbot.XmppBot, events <- chan interface{}, xmpp_presen last_buttonpress = 0 } // Try to XMPP Ping the server and if that fails, quit XMPPBot - if bot.PingServer(3500) == false { return } + if bot.PingServer(900) == false && bot.PingServer(900) == false && bot.PingServer(900) == false && bot.PingServer(900) == false{ return } case r3events.DoorProblemEvent: xmpp_presence_events_chan <- r3xmppbot.XMPPMsgEvent{Msg: fmt.Sprintf("Door Problem: %s. SeverityLevel: %d (%s)",event.Problem, event.Severity, time.Unix(event.Ts,0).String()), DistributeLevel: r3xmppbot.R3OnlineOnlyInfo, RememberAsStatus: false} }