summary refs log tree commit diff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-04-09 11:42:21 +0100
committerMark Haines <mark.haines@matrix.org>2015-04-09 11:42:21 +0100
commit1280a47fc671b718239e06030d469d99aa5ea513 (patch)
tree41e8164484f5be087b9ae11583c103ac60e1cb64 /synapse/notifier.py
parentUnset the timer in the timeout callback so that we don't try to cancel it if ... (diff)
downloadsynapse-1280a47fc671b718239e06030d469d99aa5ea513.tar.xz
Add comment
Diffstat (limited to '')
-rw-r--r--synapse/notifier.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py
index e6f37c3736..d750a6fcf7 100644
--- a/synapse/notifier.py
+++ b/synapse/notifier.py
@@ -404,6 +404,7 @@ class Notifier(object):
         def _timeout_listener():
             # TODO (erikj): We should probably set to_token to the current
             # max rather than reusing from_token.
+            # Remove the timer from the listener so we don't try to cancel it.
             listener.timer = None
             listener.notify(
                 self,