From 8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 3 Jan 2007 11:12:13 +0000 Subject: remove ugly HACK send evEnd in correct order (this assumes that no one need the currentService after evEnd is dispatched or in the evEnd callback --- lib/nav/core.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/nav/core.cpp') diff --git a/lib/nav/core.cpp b/lib/nav/core.cpp index 45b4aa6f..0b690b81 100644 --- a/lib/nav/core.cpp +++ b/lib/nav/core.cpp @@ -59,13 +59,14 @@ RESULT eNavigation::stopService(void) /* check if there is a running service... */ if (!m_runningService) return 1; - /* send stop event */ - m_event(iPlayableService::evEnd); ePtr tmp = m_runningService; m_runningService=0; tmp->stop(); + /* send stop event */ + m_event(iPlayableService::evEnd); + /* kill service. */ m_service_event_conn = 0; return 0; -- cgit v1.2.3