[rygel] core: Actually use pretty host name
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Actually use pretty host name
- Date: Fri, 26 Jun 2020 12:41:38 +0000 (UTC)
commit 9b9bed32d427418badfed3b09e836665e78d00e5
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]