Commit 7237faf4 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #548 in ZP/z-push from...

Merge pull request #548 in ZP/z-push from bugfix/ZP-1241-don-t-perform-heartbeat-in-empty to develop

* commit '6f660c13':
  ZP-1241 Don't perform heartbeat for empty sync requests.
parents f3ca12fa 6f660c13
......@@ -653,8 +653,8 @@ class Sync extends RequestProcessor {
}
}
// HEARTBEAT & Empty sync
if ($status == SYNC_STATUS_SUCCESS && (isset($hbinterval) || $emptysync == true)) {
// HEARTBEAT
if ($status == SYNC_STATUS_SUCCESS && isset($hbinterval)) {
$interval = (defined('PING_INTERVAL') && PING_INTERVAL > 0) ? PING_INTERVAL : 30;
if (isset($hbinterval))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment