[rygel] server: Always fill agent cache
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: Always fill agent cache
- Date: Sun, 21 Jul 2013 08:41:25 +0000 (UTC)
commit 5d4f88a9930132cefe5c3d1f64b05c7cd92b7cfb
Author: Jens Georg <jensg openismus com>
Date: Sat Jul 13 13:55:54 2013 +0200
server: Always fill agent cache
src/librygel-server/rygel-client-hacks.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/librygel-server/rygel-client-hacks.vala b/src/librygel-server/rygel-client-hacks.vala
index 616fc53..291d9fa 100644
--- a/src/librygel-server/rygel-client-hacks.vala
+++ b/src/librygel-server/rygel-client-hacks.vala
@@ -119,10 +119,6 @@ internal abstract class Rygel.ClientHacks : GLib.Object {
agent = client_agent_cache.get (address.get_physical ());
}
- if (agent == null || !(this.agent_regex.match (agent))) {
- throw new ClientHacksError.NA (_("Not Applicable"));
- }
-
if (agent != null) {
var address = message.get_address ();
if (client_agent_cache == null) {
@@ -130,5 +126,9 @@ internal abstract class Rygel.ClientHacks : GLib.Object {
}
client_agent_cache.set (address.get_physical (), agent);
}
+
+ if (agent == null || !(this.agent_regex.match (agent))) {
+ throw new ClientHacksError.NA (_("Not Applicable"));
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]