зеркало из https://github.com/mozilla/pjs.git
adding check for null. GetThreadEventQueue can return a null queue which we need to check for
This commit is contained in:
Родитель
f55fdd94e4
Коммит
e19cc60bdb
|
@ -322,8 +322,8 @@ void nsTimerImpl::Fire()
|
|||
nsCOMPtr<nsIEventQueue> queue;
|
||||
if (gThread)
|
||||
gThread->mEventQueueService->GetThreadEventQueue(thread, getter_AddRefs(queue));
|
||||
|
||||
queue->PostEvent(&event->e);
|
||||
if (queue)
|
||||
queue->PostEvent(&event->e);
|
||||
}
|
||||
|
||||
void nsTimerImpl::SetDelayInternal(PRUint32 aDelay)
|
||||
|
|
Загрузка…
Ссылка в новой задаче