summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-01-26 14:37:14 +0000
committerDavid Baker <dave@matrix.org>2015-01-26 14:37:14 +0000
commitefac71d6caeac9ef39dab521467932892b324e99 (patch)
treed9592a13cdef737f4f554e055c061b6087c85c82
parentAdd API to delete push rules. (diff)
downloadsynapse-efac71d6caeac9ef39dab521467932892b324e99.tar.xz
Pushers should only try & look for rejected devices in something that's a list or tuple.
-rw-r--r--synapse/push/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 53d3319699..0c51d2dd8f 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -173,7 +173,7 @@ class Pusher(object):
                 processed = True
             else:
                 rejected = yield self.dispatch_push(single_event, tweaks)
-                if not rejected is False:
+                if isinstance(rejected, list) or isinstance(rejected, tuple):
                     processed = True
                     for pk in rejected:
                         if pk != self.pushkey: