Add usleep while waiting for releasing callback function 82/282182/1
authorwn.jang <wn.jang@samsung.com>
Wed, 28 Sep 2022 04:13:31 +0000 (13:13 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Wed, 28 Sep 2022 04:22:26 +0000 (13:22 +0900)
Change-Id: I3516ec0834dda1eb4d9d8af2e993671e9a89dda8

client/vc_client.c

index 601b840..30a6bed 100644 (file)
@@ -143,6 +143,7 @@ int vc_client_destroy(void)
 
        while (0 != g_client->cb_ref_count) {
                /* wait for release callback function */
+               usleep(10000);
        }
        if (NULL != g_client->invocation_name) {
                free(g_client->invocation_name);