projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
39422be
)
1 out of 4 pings
author
Bernhard Tittelbach
<xro@realraum.at>
Fri, 8 Nov 2013 10:07:12 +0000
(10:07 +0000)
committer
Bernhard Tittelbach
<xro@realraum.at>
Fri, 8 Nov 2013 10:07:12 +0000
(10:07 +0000)
go/r3-netstatus/main.go
patch
|
blob
|
history
diff --git
a/go/r3-netstatus/main.go
b/go/r3-netstatus/main.go
index
c565df2
..
0bb8d0e
100644
(file)
--- 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
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}
}
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}
}