client_http_run_once polish
@@ -258,12 +258,10 @@ main(int argc, char *argv[])
ctx_flows[c]++;
-
ops[i].on_connected = on_connected;
ops[i].on_error = on_error;
ops[i].on_close = on_close;
-
flows[i].id = streams_going;
flows[i].ctx_id = c;
ops[i].userData = &flows[i];
@@ -311,10 +309,10 @@ main(int argc, char *argv[])
if (rc > 0) {
/* there's stuff to do on one or more contexts, do them all */
;
- }
- else {
+ } else {
fprintf(stderr, "Waiting...\n");
}
+
for (c = 0; c < num_ctxs; c++) {
neat_start_event_loop(ctx[c], NEAT_RUN_NOWAIT);
}
