From 74a22a60ada2362bc76d7053b52a80346b8590e5 Mon Sep 17 00:00:00 2001 From: vng Date: Tue, 5 Jun 2012 18:09:33 -0700 Subject: [downloader] Fix issue when url download failed. Use default server urls. --- platform/platform.hpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'platform/platform.hpp') diff --git a/platform/platform.hpp b/platform/platform.hpp index 0aff0867a7..cc94a804b3 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -119,22 +119,10 @@ public: /// @return url for clients to download maps /// Different urls are returned for versions with and without search support - inline string MetaServerUrl() const - { - if (IsFeatureSupported("search")) - return "http://active.servers.url"; - else - return "http://active.servers.url"; - } + string MetaServerUrl() const; /// @return JSON-encoded list of urls if metaserver is unreachable - inline string DefaultUrlsJSON() const - { - if (IsFeatureSupported("search")) - return "[\"http://1st.default.server/\",\"http://2nd.default.server/\",\"http://3rd.default.server/\"]"; - else - return "[\"http://1st.default.server/\",\"http://2nd.default.server/\",\"http://3rd.default.server/\"]"; - } + string DefaultUrlsJSON() const; }; extern "C" Platform & GetPlatform(); -- cgit v1.2.3