[rygel/rygel-0-38] core: Actually use pretty host name



commit 6fa81ff8eabfd7f88bf8691326634de4f61b44e1
Author: Jens Georg <mail jensge org>
Date:   Fri Jun 26 14:36:24 2020 +0200

    core: Actually use pretty host name

 src/librygel-core/rygel-root-device-factory.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-core/rygel-root-device-factory.vala 
b/src/librygel-core/rygel-root-device-factory.vala
index 329ff95c..66afb588 100644
--- a/src/librygel-core/rygel-root-device-factory.vala
+++ b/src/librygel-core/rygel-root-device-factory.vala
@@ -34,6 +34,8 @@ namespace Rygel {
     public string get_pretty_host_name () {
 
         if (pretty_host_name == null) {
+            pretty_host_name = Environment.get_host_name ();
+
             try {
                 string machine_info;
 
@@ -51,8 +53,6 @@ namespace Rygel {
             } catch (GLib.Error e) {
                 debug("Failed to parse /etc/machine-info: %s", e.message);
             }
-
-            pretty_host_name = Environment.get_host_name ();
         }
 
         return pretty_host_name;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]