summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Peng <phuang@redhat.com>2008-07-15 19:37:00 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-07-15 19:37:00 +0100
commitb5aa7ce1baa7628c883982f6dde9ca32958db857 (patch)
tree08f94a33372bcf884c8ceefd9a3bb5c98db38057
parentdff98456995c37d964eb32a7de7ca718fc3d48d7 (diff)
downloaddbus-python-b5aa7ce1baa7628c883982f6dde9ca32958db857.tar.gz
Bugfix for: if using Connection.add_message_filter, only the last filter will be called
-rw-r--r--_dbus_bindings/conn-methods.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/_dbus_bindings/conn-methods.c b/_dbus_bindings/conn-methods.c
index 6fadc31..81c4514 100644
--- a/_dbus_bindings/conn-methods.c
+++ b/_dbus_bindings/conn-methods.c
@@ -179,6 +179,7 @@ _filter_message(DBusConnection *conn, DBusMessage *message, void *user_data)
callable = PyList_GET_ITEM(conn_obj->filters, i);
if (callable == user_data) {
Py_INCREF(callable);
+ break;
}
else {
callable = NULL;