From 21f356e6f63bc0a6573fd28784649dbbb94565de Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 1 Jul 2019 19:14:49 +0900 Subject: [PATCH] Fix C Generator Before calling delegate callback function, the proxy checks whether the once flag is 'true' or 'false'. Change-Id: Ifda4d1861a1b2ffa270a86cdf6b68bd9c12c5dd4 Signed-off-by: Hwankyu Jhun --- idlc/c_gen/c_proxy_body_gen_cb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idlc/c_gen/c_proxy_body_gen_cb.h b/idlc/c_gen/c_proxy_body_gen_cb.h index 277ad2c..1ea6747 100644 --- a/idlc/c_gen/c_proxy_body_gen_cb.h +++ b/idlc/c_gen/c_proxy_body_gen_cb.h @@ -158,8 +158,10 @@ $$ while (iter) { handle = (struct ##_s *)iter->data; if (handle->seq_id == seq_id && handle->id == id) { + bool once = handle->once; + $$ - if (handle->once) { + if (once) { *list = g_list_remove_link(*list, iter); free(handle); g_list_free(iter); -- 2.7.4