Skip to content

Commit

Permalink
Remove PING_NEED_FULL status completely.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael J Rubinsky authored and mrubinsk committed Dec 2, 2018
1 parent 67f8e86 commit f56dfe7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/Horde/ActiveSync/Request/Ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,7 @@ protected function _handle()
if ($this->_statusCode == self::STATUS_NOCHANGES) {
$changes = $collections->pollForChanges($heartbeat, $interval, array('pingable' => true));
if ($changes !== true && $changes !== false) {
// If we received a status indicating we need to issue a full
// PING, but we already did, treat it as a FOLDERSYNC_REQUIRED
if (!$isEmpty && $changes == Horde_ActiveSync_Collections::COLLECTION_ERR_PING_NEED_FULL) {
$changes = Horde_ActiveSync_Collections::COLLECTION_ERR_FOLDERSYNC_REQUIRED;
}
switch ($changes) {
case Horde_ActiveSync_Collections::COLLECTION_ERR_PING_NEED_FULL:
$this->_statusCode = self::STATUS_MISSING;
$this->_handleGlobalError();
return true;
case Horde_ActiveSync_Collections::COLLECTION_ERR_STALE:
$this->_logger->info('Changes in cache detected during PING, exiting here.');
return true;
Expand Down

0 comments on commit f56dfe7

Please sign in to comment.