summary refs log tree commit diff
path: root/synapse/push/emailpusher.py
diff options
context:
space:
mode:
authorMatrix <matrix@matrix.org>2017-02-24 16:01:57 +0000
committerMatrix <matrix@matrix.org>2017-02-24 16:01:57 +0000
commit8d910ff5b9610ffd22dda7253221891106460c29 (patch)
tree241171d1d1b5ed73ede0bfe50fd869396c46569a /synapse/push/emailpusher.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
downloadsynapse-8d910ff5b9610ffd22dda7253221891106460c29.tar.xz
Local changes 2017-02-27-before
Diffstat (limited to 'synapse/push/emailpusher.py')
-rw-r--r--synapse/push/emailpusher.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/push/emailpusher.py b/synapse/push/emailpusher.py

index 2eb325c7c7..b3e0098a86 100644 --- a/synapse/push/emailpusher.py +++ b/synapse/push/emailpusher.py
@@ -218,7 +218,8 @@ class EmailPusher(object): ) def seconds_until(self, ts_msec): - return (ts_msec - self.clock.time_msec()) / 1000 + secs = (ts_msec - self.clock.time_msec()) / 1000 + return max(secs, 0) # Ensure non-negative def get_room_throttle_ms(self, room_id): if room_id in self.throttle_params: