summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-06-12 16:54:26 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-06-13 10:33:52 +0300
commitba7f46b82bbe45f9fe14b4999305bc44be2b25ad (patch)
tree1c9ebb562eaf5547f107ce7ab0c7ff10cac1691c /client
parentab78ab731df4e47d6232abbfe0bf88e3b9cc2693 (diff)
downloadconnman-ba7f46b82bbe45f9fe14b4999305bc44be2b25ad.tar.gz
connman-ba7f46b82bbe45f9fe14b4999305bc44be2b25ad.tar.bz2
connman-ba7f46b82bbe45f9fe14b4999305bc44be2b25ad.zip
client: Don't handle Agent messages in monitor code
Agent messages need to be handled in the agent code, ignore them when they get captured in the monitor code.
Diffstat (limited to 'client')
-rw-r--r--client/commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/commands.c b/client/commands.c
index b0fd1fa3..131a5ccf 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -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++;