Commit d7d65e57 authored by skummer's avatar skummer

ZP-237 #comment also mark folder as completed if GetItemEstimate exports 0...

ZP-237 #comment also mark folder as completed if GetItemEstimate exports 0 changes (WM6 does not send a Sync cmd which results in 0 objects - only a GetItemEstimate) #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1600 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 0c492631
......@@ -266,6 +266,10 @@ class GetItemEstimate extends RequestProcessor {
if ($changes[$folderid] > 0)
self::$topCollector->AnnounceInformation(sprintf("%s %d changes", $spa->GetContentClass(), $changes[$folderid]), true);
// update the device data to mark folders as complete when synching with WM
if ($changes[$folderid] == 0)
self::$deviceManager->SetFolderSyncStatus($folderid, DeviceManager::FLD_SYNC_COMPLETED);
}
}
self::$encoder->endTag();
......
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