Skip to content

Commit

Permalink
Merge pull request xbmc#15204 from Memphiz/scriptobs_race
Browse files Browse the repository at this point in the history
[PluginDirectory] - ensure that Abort of ScriptObserver waits for thread exit - fix crash&burn
  • Loading branch information
MartijnKaijser committed Jan 22, 2019
2 parents 6b13614 + 0921308 commit 23223c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/filesystem/PluginDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ void CPluginDirectory::CScriptObserver::Process()

void CPluginDirectory::CScriptObserver::Abort()
{
m_bStop = true;
// will wait until thread exits
StopThread();
}

CPluginDirectory::CPluginDirectory()
Expand Down

0 comments on commit 23223c4

Please sign in to comment.