prelude-correlator/master: Do not start Timer if they have no expiration time
[email protected] Sat, 16 Jan 2010 17:24:06 +0100 (CET)
| Newsgroups | gmane.comp.security.ids.prelude.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 88cee2590c571092aef170c3cd6edeee77fe85a7 Author: Yoann Vandoorselaere <[email protected]> Date: Sat Jan 16 16:49:32 2010 +0100 Do not start Timer if they have no expiration time ======================================== PreludeCorrelator/context.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ======================================== diff --git a/PreludeCorrelator/context.py b/PreludeCorrelator/context.py index 4d5aefb..82978bf 100644 --- a/PreludeCorrelator/context.py +++ b/PreludeCorrelator/context.py @@ -60,7 +60,7 @@ class Timer: self._timer_expire = expire def start(self): - if not self._timer_start: + if not self._timer_start and self._timer_expire > 0: self._timer_start = time.time() _TIMER_LIST.append(self) _______________________________________________ Prelude-cvslog site list [email protected] http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog