diff --git a/src/local.c b/src/local.c index 508088ba..cc78ab67 100644 --- a/src/local.c +++ b/src/local.c @@ -350,6 +350,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents) } else if (s < (int)(remote->buf->len)) { remote->buf->len -= s; remote->buf->idx = s; + return; } else { remote->buf->idx = 0; remote->buf->len = 0;