mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 22:55:53 +08:00
made it so a negative kHeartRate disables heartbeats and set
kHeartRate to -1.
This commit is contained in:
@@ -66,7 +66,8 @@ CServerProxy::mainLoop()
|
||||
}
|
||||
|
||||
// check for time out
|
||||
if (n == (UInt32)-1 || heartbeat.getTime() > kHeartRate) {
|
||||
if (n == (UInt32)-1 ||
|
||||
(kHeartRate >= 0.0 && heartbeat.getTime() > kHeartRate)) {
|
||||
// send heartbeat
|
||||
CLock lock(&m_mutex);
|
||||
CProtocolUtil::writef(getOutputStream(), kMsgCNoop);
|
||||
|
||||
Reference in New Issue
Block a user