on second thought - limit to 0 if < 0 - rest of ecore-timer does this.
authorCarsten Haitzler <raster@rasterman.com>
Tue, 18 Sep 2012 11:47:22 +0000 (11:47 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 18 Sep 2012 11:47:22 +0000 (11:47 +0000)
SVN revision: 76809

legacy/ecore/src/lib/ecore/ecore_timer.c

index e462b37..343c89f 100644 (file)
@@ -232,13 +232,7 @@ ecore_timer_interval_set(Ecore_Timer *timer,
 {
    EINA_MAIN_LOOP_CHECK_RETURN;
    _ecore_lock();
-
-   if (in < 0.0)
-     {
-        ERR("Interval %f less than zero, ignored", in);
-        goto unlock;
-     }
-
+   if (in < 0.0) in = 0.0;
    if (!ECORE_MAGIC_CHECK(timer, ECORE_MAGIC_TIMER))
      {
         ECORE_MAGIC_FAIL(timer, ECORE_MAGIC_TIMER,