Fix poll timeout issue 51/324751/1 tizen
authorWootak Jung <wootak.jung@samsung.com>
Sun, 25 May 2025 23:05:29 +0000 (08:05 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Sun, 25 May 2025 23:28:10 +0000 (08:28 +0900)
Modify timeout value to 300ms from 1000ms

Change-Id: I4782dd448a1f707dcd37f2dbf86174fcca48b41a
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
hf-agent/bluetooth-hf-agent.c

index 21eea6ce03ffc044c74728cde6f900c5277a2c3e..1b28aa12c830b132c0c8d341a7b855579e86ace3 100644 (file)
@@ -2424,7 +2424,7 @@ static gboolean __bt_hf_send_and_read(bt_hf_agent_info_t *bt_hf_info,
        for (i = 1; i <= MAX_WAITING_DELAY; i++) {
                DBG("Loop Counter = %d", i);
                p.revents = 0;
-               err = poll(&p, 1, 1000);
+               err = poll(&p, 1, 300);
                if (err < 0) {
                        ERR("Loop Counter = %d, >>>> Poll error happen", i);
                        return FALSE;