diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-05-11 19:30:28 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-05-11 19:30:28 +0800 |
commit | e439bfcddac8e9db50f34d9fd13aebf61f995c44 (patch) | |
tree | 677cc7e0efcb57e1612b19099a9aa57ee387ea87 /modules/connman | |
parent | 0907ec8130c5f2dc90f6d03e9575425aa8010f45 (diff) | |
download | gsoc2013-evolution-e439bfcddac8e9db50f34d9fd13aebf61f995c44.tar.gz gsoc2013-evolution-e439bfcddac8e9db50f34d9fd13aebf61f995c44.tar.zst gsoc2013-evolution-e439bfcddac8e9db50f34d9fd13aebf61f995c44.zip |
Turns out the filter function gets lots of messages, despite the bus-side filter.
Diffstat (limited to 'modules/connman')
-rw-r--r-- | modules/connman/evolution-connman.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/connman/evolution-connman.c b/modules/connman/evolution-connman.c index c55d09c54a..70befd2ed1 100644 --- a/modules/connman/evolution-connman.c +++ b/modules/connman/evolution-connman.c @@ -71,6 +71,12 @@ connman_monitor (DBusConnection *connection G_GNUC_UNUSED, DBusError error = DBUS_ERROR_INIT; DBusHandlerResult ret = DBUS_HANDLER_RESULT_NOT_YET_HANDLED; + if (!dbus_message_has_path (message, CM_DBUS_PATH) || + !dbus_message_has_interface (message, CM_DBUS_INTERFACE) || + !dbus_message_has_sender (message, CM_DBUS_SERVICE) || + !dbus_message_has_member (message, "StateChanged")) + goto err_exit; + if (!dbus_message_get_args (message, &error, DBUS_TYPE_STRING, &value, DBUS_TYPE_INVALID)) |