diff --git a/tractor/_portal.py b/tractor/_portal.py index 9ad4c2f..6d1c802 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -182,7 +182,7 @@ class Portal: first_msg = await recv_chan.receive() functype = first_msg.get('functype') - if functype == 'function' or functype == 'asyncfunction': + if functype == 'asyncfunc': resp_type = 'return' elif functype == 'asyncgen': resp_type = 'yield'