[evolution/express2] Turns out the filter function gets lots of messages, despite the bus-side filter.
- From: Michael Meeks <michael src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/express2] Turns out the filter function gets lots of messages, despite the bus-side filter.
- Date: Tue, 11 May 2010 11:29:29 +0000 (UTC)
commit e439bfcddac8e9db50f34d9fd13aebf61f995c44
Author: Michael Meeks <michael meeks novell com>
Date: Tue May 11 12:30:28 2010 +0100
Turns out the filter function gets lots of messages, despite the bus-side filter.
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 c55d09c..70befd2 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]