Skip to content

Commit

Permalink
[fix] save resume points on exit
Browse files Browse the repository at this point in the history
saving resume points is done with a job, so it has to happen before all jobs are cancelled
  • Loading branch information
Rechi committed Apr 28, 2018
1 parent 1f8a535 commit 8773920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/Application.cpp
Expand Up @@ -2801,6 +2801,9 @@ bool CApplication::Cleanup()

void CApplication::Stop(int exitCode)
{
CLog::Log(LOGNOTICE, "stop player");
m_appPlayer.ClosePlayer();

{
// close inbound port
CServiceBroker::UnregisterAppPort();
Expand Down Expand Up @@ -2869,9 +2872,6 @@ void CApplication::Stop(int exitCode)

CApplicationMessenger::GetInstance().Cleanup();

CLog::Log(LOGNOTICE, "stop player");
m_appPlayer.ClosePlayer();

StopServices();

#ifdef HAS_ZEROCONF
Expand Down

0 comments on commit 8773920

Please sign in to comment.