From e5dbf14ec385a4e949c85df83b398c4aa97f8b17 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Date: Mon, 27 Jul 2020 15:20:55 -0300 Subject: [PATCH] Onlt await params in trio mode --- tractor/_actor.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tractor/_actor.py b/tractor/_actor.py index b52ef18..e4a6296 100644 --- a/tractor/_actor.py +++ b/tractor/_actor.py @@ -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(