summaryrefslogtreecommitdiff
path: root/idlc/c_gen/c_proxy_body_gen_cb.h
diff options
context:
space:
mode:
Diffstat (limited to 'idlc/c_gen/c_proxy_body_gen_cb.h')
-rw-r--r--idlc/c_gen/c_proxy_body_gen_cb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/idlc/c_gen/c_proxy_body_gen_cb.h b/idlc/c_gen/c_proxy_body_gen_cb.h
index 94c43e3..86529cc 100644
--- a/idlc/c_gen/c_proxy_body_gen_cb.h
+++ b/idlc/c_gen/c_proxy_body_gen_cb.h
@@ -253,7 +253,8 @@ static void __##_on_received(const char *endpoint, const char *port_name, void *
rpc_port_parcel_h parcel_received;
int cmd = -1;
- g_rec_mutex_lock(&handle->mutex);
+ if (g_rec_mutex_trylock(&handle->mutex) == FALSE)
+ return;
rpc_port_parcel_create_from_port(&parcel_received, handle->port);
rpc_port_parcel_read_int32(parcel_received, &cmd);
if (cmd != ##_METHOD_Callback) {