Commit fdbf271b authored by jochen@chromium.org's avatar jochen@chromium.org

Always terminate the task queue

BUG=none
LOG=n
TBR=hpayer@chromium.org

Review URL: https://codereview.chromium.org/107503005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18382 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1b93245a
......@@ -45,8 +45,8 @@ DefaultPlatform::DefaultPlatform()
DefaultPlatform::~DefaultPlatform() {
LockGuard<Mutex> guard(&lock_);
if (initialized_) {
queue_.Terminate();
if (initialized_) {
for (std::vector<WorkerThread*>::iterator i = thread_pool_.begin();
i != thread_pool_.end(); ++i) {
delete *i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment