Commit ed3fdf98 authored by skummer's avatar skummer

ZP-251 #comment do not keep announcements for terminated connections about...

ZP-251 #comment do not keep announcements for terminated connections about incoming messages #time 20m

git-svn-id: https://z-push.org/svn/z-push/trunk@1470 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 69481e4f
......@@ -436,9 +436,9 @@ class Sync extends RequestProcessor {
}
if ($actiondata["fetchids"])
self::$topCollector->AnnounceInformation(sprintf("Fetching %d", $nchanges),true);
self::$topCollector->AnnounceInformation(sprintf("Fetching %d", $nchanges));
else
self::$topCollector->AnnounceInformation(sprintf("Incoming %d", $nchanges),($nchanges>0)?true:false);
self::$topCollector->AnnounceInformation(sprintf("Incoming %d", $nchanges));
if(!self::$decoder->getElementEndTag()) // end add/change/delete/move
return false;
......@@ -446,6 +446,9 @@ class Sync extends RequestProcessor {
if ($status == SYNC_STATUS_SUCCESS && $this->importer !== false) {
ZLog::Write(LOGLEVEL_INFO, sprintf("Processed '%d' incoming changes", $nchanges));
if (!$actiondata["fetchids"])
self::$topCollector->AnnounceInformation(sprintf("%d incoming", $nchanges), true);
try {
// Save the updated state, which is used for the exporter later
$sc->AddParameter($spa, "state", $this->importer->GetState());
......
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