summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-29 14:31:27 +0100
committerDavid Baker <dave@matrix.org>2016-04-29 14:31:27 +0100
commit4364ea1272a2201fc434f4cf6f0c3d13f5cbc37e (patch)
treed1a92fd04cfdfe4c5b41983283a93030d616ade6
parentCorrect public_baseurl default (diff)
downloadsynapse-4364ea1272a2201fc434f4cf6f0c3d13f5cbc37e.tar.xz
Stop processing notifs once we've sent a mail
-rw-r--r--synapse/push/emailpusher.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/push/emailpusher.py b/synapse/push/emailpusher.py
index dcbee4c3fe..68f59a3faa 100644
--- a/synapse/push/emailpusher.py
+++ b/synapse/push/emailpusher.py
@@ -159,6 +159,7 @@ class EmailPusher(object):
                 yield self.sent_notif_update_throttle(
                     push_action['room_id'], push_action
                 )
+                break
             else:
                 if soonest_due_at is None or should_notify_at < soonest_due_at:
                     soonest_due_at = should_notify_at