diff options
Diffstat (limited to 'examples/Service_Configurator/Misc/Timer_Service.cpp')
-rw-r--r-- | examples/Service_Configurator/Misc/Timer_Service.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/Service_Configurator/Misc/Timer_Service.cpp b/examples/Service_Configurator/Misc/Timer_Service.cpp index c69b448aebc..82ace8f657c 100644 --- a/examples/Service_Configurator/Misc/Timer_Service.cpp +++ b/examples/Service_Configurator/Misc/Timer_Service.cpp @@ -100,6 +100,9 @@ Timer_Service_1::handle_close (ACE_HANDLE, { ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("closing down the timer test\n"))); + // Remove ourselves from the timer queue. + ACE_Reactor::instance ()->cancel_timer (this); + ACE_Reactor::end_event_loop(); return 0; } |