[rygel/wip/dvd: 1/2] server: Always fill agent cache



commit 4445586a283e5da50862db7c934aabf9201d32b2
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]