diff options
author | Erik Johnston <erik@matrix.org> | 2015-05-08 19:53:34 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-05-08 19:53:34 +0100 |
commit | 2236ef6c92b7964665f5c43b941754d70aa506d8 (patch) | |
tree | 5befd0effe712d4c4af6264346769f57c9486060 /synapse/util/__init__.py | |
parent | Add some docs (diff) | |
download | synapse-2236ef6c92b7964665f5c43b941754d70aa506d8.tar.xz |
Fix up leak. Add warnings.
Diffstat (limited to 'synapse/util/__init__.py')
-rw-r--r-- | synapse/util/__init__.py | 3 |
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() |