aboutsummaryrefslogtreecommitdiff
path: root/lib/nav/core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nav/core.cpp')
-rw-r--r--lib/nav/core.cpp5
1 files changed, 3 insertions, 2 deletions
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<iPlayableService> tmp = m_runningService;
m_runningService=0;
tmp->stop();
+ /* send stop event */
+ m_event(iPlayableService::evEnd);
+
/* kill service. */
m_service_event_conn = 0;
return 0;