R: compromises between process_server_command and callbacks
This commit is contained in:
+3
-1
@@ -92,7 +92,6 @@ int server_print_message_cb(app_t *app, char *line, int l_len) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* TODO: refactor to process callbacks */
|
||||
int process_server_command(char *line, int l_len, app_t *app) {
|
||||
int ws_pos = l_len;
|
||||
query_args_t *q_args = app->query_args;
|
||||
@@ -146,6 +145,9 @@ int process_server_command(char *line, int l_len, app_t *app) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
q_args->state = S_PREP_SERVER_MESSAGE;
|
||||
server_print_message_cb(app, line, l_len);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user