Bug 975255 - HTTP cache v2: optimize CacheIOThread::Target(), r=michal

This commit is contained in:
Honza Bambas
2014-02-27 00:11:42 +01:00
parent c41d5bcdc7
commit a15ec9fbd0

View File

@@ -113,7 +113,8 @@ already_AddRefed<nsIEventTarget> CacheIOThread::Target()
{
nsCOMPtr<nsIEventTarget> target;
if (mThread)
target = mXPCOMThread;
if (!target && mThread)
{
MonitorAutoLock lock(mMonitor);
if (!mXPCOMThread)