Commit 3e85ce06 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #101 in ZP/z-push from bugfix/ZP-783-statusexception-from-phpwrapper-not to develop

* commit '25a8119b':
  ZP-783 Fixed typo and year.
  ZP-783 Catch StatusException when loading conflicts.
parents 16ad9d52 25a8119b
......@@ -12,7 +12,7 @@
*
* Created : 14.02.2011
*
* Copyright 2007 - 2013 Zarafa Deutschland GmbH
* Copyright 2007 - 2015 Zarafa Deutschland GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
......@@ -311,6 +311,7 @@ class ImportChangesICS implements IImportChanges {
$potConflicts = $exporter->GetChangeCount();
$started = time();
$exported = 0;
try {
while(is_array($exporter->Synchronize())) {
$exported++;
......@@ -322,6 +323,11 @@ class ImportChangesICS implements IImportChanges {
return;
}
}
}
// something really bad happened while exporting changes
catch (StatusException $stex) {
ZLog::Write(LOGLEVEL_WARN, sprintf("ImportChangesICS->lazyLoadConflicts(): got StatusException code %d while exporting changes. Ignore and mark conflicts as loaded.",$stex->getCode()));
}
$this->conflictsLoaded = true;
}
}
......
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