diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-03 11:12:13 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-03 11:12:13 +0000 |
| commit | 8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2 (patch) | |
| tree | 4a43967a332bc4162a32efcbb0ad6454078798c3 /lib/nav/core.cpp | |
| parent | c54ee36de25775299773381e9f15667659b3b6db (diff) | |
| download | enigma2-8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2.tar.gz enigma2-8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2.zip | |
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
Diffstat (limited to 'lib/nav/core.cpp')
| -rw-r--r-- | lib/nav/core.cpp | 5 |
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; |
