<div class="gmail_quote">On Fri Nov 21 2014 at 10:36:29 PM Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Right, I figured as much. My point is that doing what I'm proposing<br>
there would allow such usage even though it is illegal based on the<br>
API description.<br>
<br></blockquote><div>Alright. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It requires a begin_query for some but not all queries.<br>
<br>
Perhaps the code should read like<br>
<br>
    } else {<br>
        if (This->state != NINE_QUERY_STATE_RUNNING)<br>
            pipe->begin_query(pipe, This->pq);<br>
        pipe->end_query(pipe, This->pq);<br>
        This->state = NINE_QUERY_STATE_ENDED;<br>
    }<br>
<br>
This seems like it would also take care of the Ended -> Ended<br>
transition which is supposed to restart the query.<br></blockquote><div>My understanding is that the End->End restart is only in the final state of the query, so it shouldn't happen in the others.</div><div>Do you see that differently? </div></div>