Pushers should only try & look for rejected devices in something that's a list or tuple.

This commit is contained in:
David Baker 2015-01-26 14:37:14 +00:00
parent 5f84ba8ea1
commit efac71d6ca
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class Pusher(object):
processed = True processed = True
else: else:
rejected = yield self.dispatch_push(single_event, tweaks) rejected = yield self.dispatch_push(single_event, tweaks)
if not rejected is False: if isinstance(rejected, list) or isinstance(rejected, tuple):
processed = True processed = True
for pk in rejected: for pk in rejected:
if pk != self.pushkey: if pk != self.pushkey: