fix a minor bug unrelated to this change

This commit is contained in:
termie
2011-05-26 17:06:52 -07:00
parent 7be1954fa2
commit 5236b73117

View File

@@ -212,7 +212,9 @@ class AdapterConsumer(Consumer):
# we just log the message and send an error string
# back to the caller
LOG.warn(_('no method for message: %s') % message_data)
msg_reply(msg_id, _('No method for message: %s') % message_data)
if msg_id:
msg_reply(msg_id,
_('No method for message: %s') % message_data)
return
self.pool.spawn_n(self._process_data, msg_id, ctxt, method, args)