0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-12 04:52:26 +01:00

Rename things

This commit is contained in:
Erik Johnston 2016-04-07 16:07:16 +01:00
parent ee5aef6c72
commit 95ac3078da

View file

@ -175,13 +175,13 @@ class Linearizer(object):
yield preserve_context_over_deferred(current_defer) yield preserve_context_over_deferred(current_defer)
@contextmanager @contextmanager
def _ctx_manager(d): def _ctx_manager():
try: try:
yield yield
finally: finally:
d.callback(None) new_defer.callback(None)
d = self.key_to_defer.get(key) current_d = self.key_to_defer.get(key)
if d is new_defer: if current_d is new_defer:
self.key_to_defer.pop(key, None) self.key_to_defer.pop(key, None)
defer.returnValue(_ctx_manager(new_defer)) defer.returnValue(_ctx_manager())