diff --git a/js/src/vm/ThreadPool.cpp b/js/src/vm/ThreadPool.cpp index 849fbcd721f..7ef88d130aa 100644 --- a/js/src/vm/ThreadPool.cpp +++ b/js/src/vm/ThreadPool.cpp @@ -141,18 +141,11 @@ ThreadPoolWorker::start() // Set state to active now, *before* the thread starts: state_ = ACTIVE; - if (!PR_CreateThread(PR_USER_THREAD, - HelperThreadMain, this, - PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, - PR_UNJOINABLE_THREAD, - WORKER_THREAD_STACK_SIZE)) - { - // If the thread failed to start, call it TERMINATED. - state_ = TERMINATED; - return false; - } - - return true; + return PR_CreateThread(PR_USER_THREAD, + HelperThreadMain, this, + PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, + PR_UNJOINABLE_THREAD, + WORKER_THREAD_STACK_SIZE); #endif }