fixes bug 135547 "make event queues more robust"

r=danm sr=rpotts,brendan


git-svn-id: svn://10.0.0.236/trunk@118682 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2002-04-11 00:16:04 +00:00
parent d471bf6ed8
commit fd0ff3aab6
2 changed files with 7 additions and 0 deletions

View File

@@ -331,6 +331,7 @@ nsEventQueueServiceImpl::PopThreadEventQueue(nsIEventQueue *aQueue)
++gEventQueueLogCount;
#endif
aQueue->StopAcceptingEvents();
aQueue->ProcessPendingEvents(); // make sure we don't orphan any events
if (aQueue == queue.get()) { // are we reomving the eldest queue?
mEventQTable.Remove(&key); // remove nsIEventQueue from hash table (releases)