Fix endless loop for checkCache in SitemapRebuildWorker
authorJoshua Rüsweg <josh@bastelstu.be>
Thu, 10 Aug 2017 11:55:39 +0000 (13:55 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Thu, 10 Aug 2017 12:00:55 +0000 (14:00 +0200)
See #2286

wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php

index f3f10c0a58b9dee053bb25ed94f398893139418d..dfd36dfbc79156585952220516bad2b63f2aaaa0 100755 (executable)
@@ -217,8 +217,10 @@ class SitemapRebuildWorker extends AbstractWorker {
                                if ($this->loopCount == 0) {
                                        $this->loopCount = 1;
                                }
-                               $this->storeWorkerData();
-                       } else {
+                               $this->storeWorkerData(); 
+                               break;
+                       } 
+                       else {
                                $object = $this->sitemapObjects[$this->workerData['sitemap']];
                        }
                }