mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 07:00:51 +03:00
Also check for presence of 'threadCallQueue' in reactor
This commit is contained in:
parent
d3da63f766
commit
6e7d36a72c
1 changed files with 8 additions and 1 deletions
|
@ -184,7 +184,14 @@ def runUntilCurrentTimer(func):
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
||||||
if hasattr(reactor, "runUntilCurrent") and hasattr(reactor, "_newTimedCalls"):
|
try:
|
||||||
|
# Ensure the reactor has all the attributes we expect
|
||||||
|
reactor.runUntilCurrent
|
||||||
|
reactor._newTimedCalls
|
||||||
|
reactor.threadCallQueue
|
||||||
|
|
||||||
# runUntilCurrent is called when we have pending calls. It is called once
|
# runUntilCurrent is called when we have pending calls. It is called once
|
||||||
# per iteratation after fd polling.
|
# per iteratation after fd polling.
|
||||||
reactor.runUntilCurrent = runUntilCurrentTimer(reactor.runUntilCurrent)
|
reactor.runUntilCurrent = runUntilCurrentTimer(reactor.runUntilCurrent)
|
||||||
|
except AttributeError:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in a new issue