diff options
author | David Baker <dave@matrix.org> | 2015-01-26 14:37:14 +0000 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2015-01-26 14:37:14 +0000 |
commit | efac71d6caeac9ef39dab521467932892b324e99 (patch) | |
tree | d9592a13cdef737f4f554e055c061b6087c85c82 /synapse/push | |
parent | Add API to delete push rules. (diff) | |
download | synapse-efac71d6caeac9ef39dab521467932892b324e99.tar.xz |
Pushers should only try & look for rejected devices in something that's a list or tuple.
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/__init__.py | 2 |
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: |