diff --git a/media/base/closure_thread.cc b/media/base/closure_thread.cc index e737a46fcd..a83809509a 100644 --- a/media/base/closure_thread.cc +++ b/media/base/closure_thread.cc @@ -14,7 +14,7 @@ ClosureThread::ClosureThread( : base::SimpleThread(name_prefix), task_(task) {} ClosureThread::~ClosureThread() { - if (!HasBeenJoined()) + if (HasBeenStarted() && !HasBeenJoined()) Join(); }