Add KORE_PGSQL_STATE_WAIT to our example

This commit is contained in:
Joris Vink 2014-08-15 12:39:31 +02:00
parent 8565b47800
commit 6e6b042388
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ request_db_wait(struct http_request *req)
* given us something, check the state to figure out what.
*/
switch (state->sql.state) {
case KORE_PGSQL_STATE_WAIT:
return (HTTP_STATUS_RETRY);
case KORE_PGSQL_STATE_COMPLETE:
req->fsm_state = REQ_STATE_DONE;
break;