Browse Source

fix typo

pull/4/merge
Max Lv 11 years ago
parent
commit
fc7495a106
1 changed files with 2 additions and 2 deletions
  1. 4
      src/server.c

4
src/server.c

@ -172,7 +172,7 @@ static void server_recv_cb (EV_P_ ev_io *w, int revents) {
} }
} else if (s < r) { } else if (s < r) {
remote->buf_len = r - s; remote->buf_len = r - s;
remote->buf_idx = r;
remote->buf_idx = s;
ev_io_stop(EV_A_ &server_recv_ctx->io); ev_io_stop(EV_A_ &server_recv_ctx->io);
ev_io_start(EV_A_ &remote->send_ctx->io); ev_io_start(EV_A_ &remote->send_ctx->io);
} }
@ -479,7 +479,7 @@ static void remote_recv_cb (EV_P_ ev_io *w, int revents) {
return; return;
} else if (s < r) { } else if (s < r) {
server->buf_len = r - s; server->buf_len = r - s;
server->buf_idx = r;
server->buf_idx = s;
ev_io_stop(EV_A_ &remote_recv_ctx->io); ev_io_stop(EV_A_ &remote_recv_ctx->io);
ev_io_start(EV_A_ &server->send_ctx->io); ev_io_start(EV_A_ &server->send_ctx->io);
return; return;

Loading…
Cancel
Save