Ensure the agent’s context doesn’t get iterated while in the middle of
reading a message, as that will corrupt the component->recv_messages
state.
blocking ? "blocking" : "non-blocking");
nice_debug_input_message_composition (messages, n_messages);
+ /* Disallow re-entrant reads. */
+ g_assert (component->n_recv_messages == 0 &&
+ component->recv_messages == NULL);
+
/* Set the component’s receive buffer. */
context = component_dup_io_context (component);
component_set_io_callback (component, NULL, NULL, messages, n_messages,