Remove obsolete reordering of package servers in PackageUpdateDispatcher::refreshPack...
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 May 2022 14:21:20 +0000 (16:21 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 May 2022 14:34:50 +0000 (16:34 +0200)
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

index 5d1626aad74ef463989b4c93df570aeae70252cc..2e8d2d491d8fc016a00950b23c8053460cf7a4f2 100644 (file)
@@ -47,20 +47,11 @@ class PackageUpdateDispatcher extends SingletonFactory
 
         // loop servers
         $updateServers = [];
-        $foundWoltLabServer = false;
         $requirePurchasedVersions = false;
         foreach ($tmp as $updateServer) {
             if ($ignoreCache || $updateServer->lastUpdateTime < TIME_NOW - 600) {
                 if (\preg_match('~^https?://(?:update|store)\.woltlab\.com\/~', $updateServer->serverURL)) {
                     $requirePurchasedVersions = true;
-
-                    // move a woltlab.com update server to the front of the queue to probe for SSL support
-                    if (!$foundWoltLabServer) {
-                        \array_unshift($updateServers, $updateServer);
-                        $foundWoltLabServer = true;
-
-                        continue;
-                    }
                 }
 
                 $updateServers[] = $updateServer;