master: send_await() always unpickles now.

This commit is contained in:
David Wilson 2017-09-21 15:57:02 +05:30
parent a6c97aad84
commit be2264f4c1
1 changed files with 1 additions and 2 deletions

View File

@ -744,10 +744,9 @@ class ChildIdAllocator(object):
def allocate(self):
master = Context(self.router, 0)
reply = master.send_await(
return master.send_await(
mitogen.core.Message(dst_id=0, handle=mitogen.core.ALLOCATE_ID)
)
return reply.unpickle()
class Router(mitogen.core.Router):