diff --git a/po/gradio.pot b/po/gradio.pot index 5644f6ba..41aae996 100644 --- a/po/gradio.pot +++ b/po/gradio.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-07-28 12:40+0200\n" +"POT-Creation-Date: 2016-07-28 13:00+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/Util.vala b/src/Util.vala index 119da8dc..aff09b89 100644 --- a/src/Util.vala +++ b/src/Util.vala @@ -97,18 +97,13 @@ public class Util{ var host = "www.radio-browser.info"; try { - // Resolve hostname to IP address - var resolver = Resolver.get_default (); - var addresses = resolver.lookup_by_name (host, null); - var address = addresses.nth_data (0); - if (address == null) { - return false; - } - } catch (Error e) { - debug ("%s\n", e.message); - return false; - } - return true; + Resolver resolver = Resolver.get_default (); + resolver.lookup_by_name (host, null); + return true; + } catch (Error e) { + critical (e.message); + return false; + } } public static void open_website(string address){