ecore_timer: set timer with current time when main loop is slow. 16/293416/1 accepted/tizen/unified/20230608.164346
authorHosang Kim <hosang12.kim@samsung.com>
Fri, 26 May 2023 07:07:49 +0000 (16:07 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Fri, 26 May 2023 07:47:00 +0000 (07:47 +0000)
Change-Id: I8eb1777b381489b903a5a774857a4dc7cd36e0f6

src/lib/ecore/ecore_timer.c

index a9f70f0..8740b1a 100644 (file)
@@ -610,7 +610,7 @@ _efl_loop_timer_reschedule(Efl_Loop_Timer_Data *timer, double when)
     * is stopped in a debugger or IO and other handling gets
     * really slow within the main loop.
     */
-   if ((timer->at + timer->in) < (when - 15.0))
+   if ((timer->at + timer->in) < when)
      _efl_loop_timer_set(timer, when + timer->in, timer->in);
    else
      _efl_loop_timer_set(timer, timer->at + timer->in, timer->in);