X-Git-Url: http://git.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_main.c;fp=ubusd_main.c;h=d298b51db17b5ccd35255a5f89877a6db781d67f;hp=3728a4279238f1c8dba36491b37c8b9bd0f44488;hb=c736e47f3e2ad8f895306e9917f7bd6143fd29d9;hpb=4becbd67de5867ec32a53cb15566a6ef505f4619 diff --git a/ubusd_main.c b/ubusd_main.c index 3728a42..d298b51 100644 --- a/ubusd_main.c +++ b/ubusd_main.c @@ -74,6 +74,7 @@ static void client_cb(struct uloop_fd *sock, unsigned int events) } cl->txq_ofs += written; + cl->txq_len -= written; if (cl->txq_ofs < ub->len + sizeof(ub->hdr)) break;