diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/basic_event_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c index 8db4426e..833f971d 100644 --- a/server/tests/basic_event_loop.c +++ b/server/tests/basic_event_loop.c @@ -159,11 +159,11 @@ static void add_ms_to_timeval(struct timeval *tv, int ms) static void timer_start(SpiceTimer *timer, uint32_t ms) { + ASSERT(ms); gettimeofday(&timer->tv_start, NULL); timer->ms = ms; // already add ms to timer value add_ms_to_timeval(&timer->tv_start, ms); - ASSERT(timer->ms); } static void timer_cancel(SpiceTimer *timer) |