summary refs log tree commit diff
path: root/synapse/util/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-08 19:53:34 +0100
committerErik Johnston <erik@matrix.org>2015-05-08 19:53:34 +0100
commit2236ef6c92b7964665f5c43b941754d70aa506d8 (patch)
tree5befd0effe712d4c4af6264346769f57c9486060 /synapse/util/__init__.py
parentAdd some docs (diff)
downloadsynapse-2236ef6c92b7964665f5c43b941754d70aa506d8.tar.xz
Fix up leak. Add warnings.
Diffstat (limited to 'synapse/util/__init__.py')
-rw-r--r--synapse/util/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/util/__init__.py b/synapse/util/__init__.py
index 364b927851..fd3eb1f574 100644
--- a/synapse/util/__init__.py
+++ b/synapse/util/__init__.py
@@ -54,7 +54,8 @@ class Clock(object):
                 LoggingContext.thread_local.current_context = current_context
                 callback()
 
-        return reactor.callLater(delay, wrapped_callback)
+        with PreserveLoggingContext():
+            return reactor.callLater(delay, wrapped_callback)
 
     def cancel_call_later(self, timer):
         timer.cancel()