client: Don't handle Agent messages in monitor code
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 12 Jun 2013 13:54:26 +0000 (16:54 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 13 Jun 2013 07:33:52 +0000 (10:33 +0300)
Agent messages need to be handled in the agent code, ignore them when
they get captured in the monitor code.

client/commands.c

index b0fd1fa..131a5cc 100644 (file)
@@ -1019,6 +1019,10 @@ static DBusHandlerResult monitor_changed(DBusConnection *connection,
        if (strncmp(interface, "net.connman.", 12) != 0)
                return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 
+       if (strncmp(interface, "net.connman.Agent", 17) == 0 ||
+                       strncmp(interface, "net.connman.vpn.Agent", 21) == 0)
+               return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
+
        interface = strrchr(interface, '.');
        if (interface != NULL && *interface != '\0')
                interface++;