mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 11:54:12 -04:00
Fix up leak. Add warnings.
This commit is contained in:
parent
da1aa07db5
commit
2236ef6c92
8 changed files with 69 additions and 48 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue