Start up RPC server immediately

Don't wait for catch-up
Closes #78
This commit is contained in:
Neil Booth 2016-12-18 08:10:20 +09:00
parent 378372e666
commit 3cf23c88bd

View File

@ -224,10 +224,9 @@ class ServerManager(util.LoggedClass):
async def start_servers(self, caught_up):
'''Start RPC, TCP and SSL servers once caught up.'''
await caught_up.wait()
if self.env.rpc_port is not None:
await self.start_server('RPC', 'localhost', self.env.rpc_port)
await caught_up.wait()
await self.start_external_servers()
async def start_external_servers(self):