From: Felix Fietkau Date: Thu, 30 Nov 2023 11:19:29 +0000 (+0100) Subject: client: send confirmation messages for ring add/remove X-Git-Url: http://git.openwrt.org/openwrt/feeds.git?p=project%2Fudebug.git;a=commitdiff_plain;h=b613879cb049123dd9dc68d5e6aef60141ebe483 client: send confirmation messages for ring add/remove Signed-off-by: Felix Fietkau --- diff --git a/client.c b/client.c index 93f3195..e758832 100644 --- a/client.c +++ b/client.c @@ -170,6 +170,7 @@ static void client_parse_message(struct client *cl) switch (msg->type) { case CL_MSG_RING_ADD: client_ring_alloc(cl); + client_send_msg(cl, msg, -1); break; case CL_MSG_RING_REMOVE: DC(2, cl, "delete ring %x", msg->id); @@ -178,6 +179,7 @@ static void client_parse_message(struct client *cl) client_ring_free(r); else DC(2, cl, "ring not found"); + client_send_msg(cl, msg, -1); break; case CL_MSG_RING_NOTIFY: DC(3, cl, "notify on ring %d", msg->id);