| Index: runtime/vm/thread_pool.cc
|
| diff --git a/runtime/vm/thread_pool.cc b/runtime/vm/thread_pool.cc
|
| index 02f406a0490750fbce0e53c2c10dfe57830dcc64..19c0a4d363a8ca1af052887c31e6c3e072e48860 100644
|
| --- a/runtime/vm/thread_pool.cc
|
| +++ b/runtime/vm/thread_pool.cc
|
| @@ -107,16 +107,10 @@ void ThreadPool::Shutdown() {
|
| while (current != NULL) {
|
| Worker* next = current->all_next_;
|
| ThreadId currentId = current->id();
|
| - ASSERT(id != currentId);
|
| - if (currentId == OSThread::kInvalidThreadId) {
|
| - // If the thread id is invalid, it means the thread never started
|
| - // because OSThread creation was disabled. Destroy the Task and Worker.
|
| - delete current->task_;
|
| - delete current;
|
| - } else {
|
| + if (currentId != id) {
|
| AddWorkerToShutdownList(current);
|
| - current->Shutdown();
|
| }
|
| + current->Shutdown();
|
| current = next;
|
| }
|
| saved = NULL;
|
|
|