[rygel/rygel-0-18] server: Always fill agent cache



commit ff414c8c7d0dbd43b03848f1094c3040192a9b51
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 a001b67..715b65e 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]