[gnome-games] grilo: Fix errors when without internet access
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] grilo: Fix errors when without internet access
- Date: Mon, 15 Aug 2016 15:50:10 +0000 (UTC)
commit 56aa89c6524fdb1829a1c05bdfc901ae5e2384f3
Author: Bastien Nocera <hadess hadess net>
Date: Sat Aug 13 14:03:16 2016 +0200
grilo: Fix errors when without internet access
It's not an error for the GamesDB source not to be available, it
is what happens when Internet access is not available.
https://bugzilla.gnome.org/show_bug.cgi?id=769825
src/grilo/grilo-media.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/grilo/grilo-media.vala b/src/grilo/grilo-media.vala
index 77c0a92..3c3949c 100644
--- a/src/grilo/grilo-media.vala
+++ b/src/grilo/grilo-media.vala
@@ -48,8 +48,8 @@ public class Games.GriloMedia : Object {
var registry = get_registry ();
var source = registry.lookup_source ("grl-thegamesdb");
-
- return_val_if_fail (source != null, null);
+ if (source == null)
+ return;
var base_media = new Grl.Media ();
var title_string = title.get_title ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]