175932. UMR: PostTimerEvent() does not check return value from GetPRThread(). Thanks to Andrew Schultz for pointing this out. r=pavlov, sr=darin. Also includes 175440 - using nsCOMArray in nsThreadPool, patch by bzbarsky@mit.edu
This commit is contained in:
@@ -471,7 +471,11 @@ void nsTimerImpl::PostTimerEvent()
|
||||
}
|
||||
|
||||
PRThread *thread;
|
||||
mCallingThread->GetPRThread(&thread);
|
||||
nsresult rv = mCallingThread->GetPRThread(&thread);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_WARNING("Droping timer event because thread is dead");
|
||||
return;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIEventQueue> queue;
|
||||
if (gThread)
|
||||
|
||||
Reference in New Issue
Block a user