Bug 956374 - HTTP cache v2: fix CacheIOThread::Target() wait conditioning, r=michal

This commit is contained in:
Honza Bambas 2014-01-09 00:27:31 +01:00
parent b2cdbb84eb
commit a2007b5647

View File

@ -114,12 +114,14 @@ void CacheIOThread::ThreadFunc()
MonitorAutoLock lock(mMonitor);
// This creates nsThread for this PRThread
mXPCOMThread = NS_GetCurrentThread();
nsCOMPtr<nsIThread> xpcomThread = NS_GetCurrentThread();
threadInternal = do_QueryInterface(mXPCOMThread);
threadInternal = do_QueryInterface(xpcomThread);
if (threadInternal)
threadInternal->SetObserver(this);
mXPCOMThread.swap(xpcomThread);
lock.NotifyAll();
do {