From 50c729f6a63d449e729aa9030af55d0e0fb6712d Mon Sep 17 00:00:00 2001 From: sma Date: Mon, 30 Jul 2007 14:44:22 +0000 Subject: ChangeLogTag: Mon Jul 30 14:45:00 UTC 2007 Simon Massey --- ACE/tests/Timer_Queue_Reference_Counting_Test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ACE/tests/Timer_Queue_Reference_Counting_Test.cpp') diff --git a/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp b/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp index 08fbe99698a..7b36fd5f115 100644 --- a/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp +++ b/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp @@ -337,7 +337,7 @@ expire (ACE_Timer_Queue &timer_queue, ACE_Time_Value (1)); ACE_ASSERT (timer_id != -1); - timer_id = + result = timer_queue.schedule (handler, two_second_timeout, ACE_Time_Value (2) + timer_queue.gettimeofday ()); @@ -370,6 +370,8 @@ expire (ACE_Timer_Queue &timer_queue, i += result; } + + timer_queue.cancel (timer_id, 0, 0); } template -- cgit v1.2.1