mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-17 19:14:02 +01:00
Make SynapseHomeServer _http_listener use self.get_reactor()
For all the homeserver classes, only the FrontendProxyServer passes its reactor when doing the http listen. Looking at previous PR's looks like this was introduced to make it possible to write a test, otherwise when you try to run a test with the test homeserver it tries to do a real bind to a port. Passing the reactor that the homeserver is instantiated with should probably be the right thing to do anyway? Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
parent
6d25599098
commit
a17bac171f
1 changed files with 3 additions and 1 deletions
|
@ -130,6 +130,7 @@ class SynapseHomeServer(HomeServer):
|
|||
self.version_string,
|
||||
),
|
||||
self.tls_server_context_factory,
|
||||
reactor=self.get_reactor(),
|
||||
)
|
||||
|
||||
else:
|
||||
|
@ -142,7 +143,8 @@ class SynapseHomeServer(HomeServer):
|
|||
listener_config,
|
||||
root_resource,
|
||||
self.version_string,
|
||||
)
|
||||
),
|
||||
reactor=self.get_reactor(),
|
||||
)
|
||||
logger.info("Synapse now listening on port %d", port)
|
||||
|
||||
|
|
Loading…
Reference in a new issue