diff --git a/mitogen/core.py b/mitogen/core.py index 70c2f588..58e004ae 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1856,7 +1856,9 @@ class ExternalContext(object): for msg in self.recv: try: - msg.reply(self._dispatch_one(msg)) + ret = self._dispatch_one(msg) + if msg.reply_to: + msg.reply(ret) except Exception: e = sys.exc_info()[1] _v and LOG.debug('_dispatch_calls: %s', e)