Skip to content

Commit

Permalink
Merge pull request xbmc#13880 from MaxKellermann/dialog_busy_crash
Browse files Browse the repository at this point in the history
dialogs/GUIDialogBusy: stop the CThread properly
  • Loading branch information
jimfcarroll authored May 12, 2018
2 parents ce5cecc + ab4c697 commit f472214
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/dialogs/GUIDialogBusy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class CBusyWaiter : public CThread
explicit CBusyWaiter(IRunnable *runnable) :
CThread(runnable, "waiting"), m_done(new CEvent()), m_runnable(runnable) { }

~CBusyWaiter()
{
StopThread();
}

bool Wait(unsigned int displaytime, bool allowCancel)
{
std::shared_ptr<CEvent> e_done(m_done);
Expand Down

0 comments on commit f472214

Please sign in to comment.