[Spice-devel] [PATCH 04/10] server/tests: basic_event_loop: reset timer after firing it

Alon Levy alevy at redhat.com
Sat Jan 8 06:23:22 PST 2011


---
 server/tests/basic_event_loop.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c
index f6570ff..a50a916 100644
--- a/server/tests/basic_event_loop.c
+++ b/server/tests/basic_event_loop.c
@@ -278,6 +278,7 @@ void timeout_timers()
             count++;
             DPRINTF(1, "calling timer");
             next->func(next->opaque);
+            next->ms = 0;
         }
         next = (SpiceTimer*)ring_next(&timers, &next->link);
     }
-- 
1.7.3.4



More information about the Spice-devel mailing list