forked from goodboy/tractor
1
0
Fork 0

Onlt await params in trio mode

start_up_sequence_trickery
Guillermo Rodriguez 2020-07-27 15:20:55 -03:00
parent 2a407be532
commit e5dbf14ec3
No known key found for this signature in database
GPG Key ID: 3F61096EC7DF75A8
1 changed files with 5 additions and 3 deletions

View File

@ -576,9 +576,11 @@ class Actor:
# initial handshake, report who we are, who they are
await self._do_handshake(chan)
self._parent_main_data = await chan.recv()
self.rpc_module_paths = await chan.recv()
self.statespace = await chan.recv()
if self._spawn_method == "trio":
# recieve additional init params
self._parent_main_data = await chan.recv()
self.rpc_module_paths = await chan.recv()
self.statespace = await chan.recv()
except OSError: # failed to connect
log.warning(