server/utils.py
changeset 8911 2dd134a86996
parent 8887 7920f439f383
child 8912 da2007002dca
--- a/server/utils.py	Tue Apr 23 18:15:10 2013 +0200
+++ b/server/utils.py	Wed Apr 24 11:58:49 2013 +0200
@@ -145,8 +145,8 @@
 class LoopTask(object):
     """threaded task restarting itself once executed"""
     def __init__(self, tasks_manager, interval, func, args):
-        if interval <= 0:
-            raise ValueError('Loop task interval must be > 0 '
+        if interval < 0:
+            raise ValueError('Loop task interval must be >= 0 '
                              '(current value: %f for %s)' % \
                              (interval, func_name(func)))
         self._tasks_manager = tasks_manager