In pgsql_simple_state_result() be sure to progress the sql state.

Drop back into waiting after our result so we can properly read out
the completed state.
This commit is contained in:
Joris Vink 2014-09-19 12:51:37 +02:00
parent ee52746a7a
commit f6f37437da
1 changed files with 3 additions and 1 deletions

View File

@ -511,7 +511,9 @@ pgsql_simple_state_result(struct http_request *req)
if (simple->result)
simple->result(req, simple);
req->fsm_state = PGSQL_SIMPLE_STATE_DONE;
kore_pgsql_continue(req, &simple->sql);
req->fsm_state = PGSQL_SIMPLE_STATE_WAIT;
return (HTTP_STATE_CONTINUE);
}