diff --git a/netwerk/cache2/CacheIOThread.cpp b/netwerk/cache2/CacheIOThread.cpp index 3f43307cb884..4303b0a07007 100644 --- a/netwerk/cache2/CacheIOThread.cpp +++ b/netwerk/cache2/CacheIOThread.cpp @@ -164,6 +164,11 @@ CacheIOThread::CacheIOThread() { } CacheIOThread::~CacheIOThread() { + { + MonitorAutoLock lock(mMonitor); + MOZ_RELEASE_ASSERT(mShutdown); + } + if (mXPCOMThread) { nsIThread* thread = mXPCOMThread; thread->Release();