Commit 6f660c13 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1241 Don't perform heartbeat for empty sync requests.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 54cb4db0
......@@ -649,8 +649,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