Fix narrow stream event queues with all event types.

(imported from commit 69c2f6f1be3dd864b5da85104b83235f0dd4df50)
This commit is contained in:
Tim Abbott
2013-12-13 12:06:13 -05:00
parent 28c03e3f0d
commit af347acf99

View File

@@ -119,9 +119,7 @@ class ClientDescriptor(object):
return False return False
def accepts_event(self, event): def accepts_event(self, event):
if self.event_types is None: if self.event_types is not None and event["type"] not in self.event_types:
return True
if event["type"] not in self.event_types:
return False return False
if event["type"] == "message": if event["type"] == "message":
return self.narrow_filter(event) return self.narrow_filter(event)