Skip to content

Commit

Permalink
fixed hang when exiting XBMC with remote
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalP authored and Jonathan Marshall committed Jan 21, 2012
1 parent bcbe164 commit a837a10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/Application.cpp
Expand Up @@ -3010,6 +3010,11 @@ bool CApplication::ProcessEventServer(float frameTime)
bool isAxis = false;
float fAmount = 0.0;

// es->ExecuteNextAction() invalidates the ref to the CEventServer instance
// when the action exits XBMC
es = CEventServer::GetInstance();
if (!es || !es->Running() || es->GetNumberOfClients()==0)
return false;
WORD wKeyID = es->GetButtonCode(joystickName, isAxis, fAmount);

if (wKeyID)
Expand Down

0 comments on commit a837a10

Please sign in to comment.