Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_file


Modified Files:
        ecore_file_monitor_poll.c 


Log Message:
Avoid changing the interval on a NULL timer.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_file/ecore_file_monitor_poll.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ecore_file_monitor_poll.c   7 Oct 2005 02:44:20 -0000       1.15
+++ ecore_file_monitor_poll.c   12 Jul 2007 21:45:55 -0000      1.16
@@ -176,13 +176,16 @@
    free(em->path);
    free(em);
    
-   if ((!_monitors) && (_timer))
+   if (_timer)
      {
-       ecore_timer_del(_timer);
-       _timer = NULL;
+       if (!_monitors)
+         {
+            ecore_timer_del(_timer);
+            _timer = NULL;
+         }
+       else
+         ecore_timer_interval_set(_timer, ECORE_FILE_INTERVAL_MIN);
      }
-   else
-     ecore_timer_interval_set(_timer, ECORE_FILE_INTERVAL_MIN);
 }
 
 static int



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to