diff options
-rw-r--r-- | src/tbm_surface_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbm_surface_queue.c b/src/tbm_surface_queue.c index ff82ad8..3f17764 100644 --- a/src/tbm_surface_queue.c +++ b/src/tbm_surface_queue.c @@ -1387,7 +1387,7 @@ tbm_surface_queue_can_dequeue_wait_timeout(tbm_surface_queue_h surface_queue, in while (1) { clock_gettime(CLOCK_MONOTONIC, &tp); - if (ms_timeout > 1000) + if (ms_timeout >= 1000) tp.tv_sec += ms_timeout / 1000; tp.tv_nsec += (ms_timeout % 1000) * 1000000; |