Bug 821469 - Don't start compression thread if not requested. r=billm

This commit is contained in:
Benjamin Peterson 2012-12-13 20:41:27 -05:00
parent 314194ef5a
commit 482a78d941

View File

@ -956,7 +956,7 @@ JSRuntime::init(uint32_t maxbytes)
return false;
#ifdef JS_THREADSAFE
if (!sourceCompressorThread.init())
if (useHelperThreads() && !sourceCompressorThread.init())
return false;
#endif