Changeset View
Changeset View
Standalone View
Standalone View
lib/ext/Syncroton/Command/Ping.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public function handle() | ||||
try { | try { | ||||
// does the folder exist? | // does the folder exist? | ||||
$folder = $this->_folderBackend->getFolder($this->_device, (string)$folderXml->Id); | $folder = $this->_folderBackend->getFolder($this->_device, (string)$folderXml->Id); | ||||
$folders[$folder->id] = $folder; | $folders[$folder->id] = $folder; | ||||
} catch (Syncroton_Exception_NotFound $senf) { | } catch (Syncroton_Exception_NotFound $senf) { | ||||
if ($this->_logger instanceof Zend_Log) | if ($this->_logger instanceof Zend_Log) | ||||
$this->_logger->debug(__METHOD__ . '::' . __LINE__ . " " . $senf->getMessage()); | $this->_logger->debug(__METHOD__ . '::' . __LINE__ . " " . $senf->getMessage()); | ||||
$status = self::STATUS_FOLDER_NOT_FOUND; | // Outlook refuses to removed some folders, and keeps requesting them. | ||||
break; | // Without this we end up in an endless loop: https://bifrost.kolabsystems.com/T399575 | ||||
continue; | |||||
} | } | ||||
} | } | ||||
$this->_device->pingfolder = serialize(array_keys($folders)); | $this->_device->pingfolder = serialize(array_keys($folders)); | ||||
} | } | ||||
} | } | ||||
$this->_device->lastping = new DateTime('now', new DateTimeZone('utc')); | $this->_device->lastping = new DateTime('now', new DateTimeZone('utc')); | ||||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |