fixes bug 192294 "hangs at various URLs (Windows 9x-specific)" r=wtc sr=bz a=asa
This commit is contained in:
Родитель
2c285c0b06
Коммит
eab16107c6
|
@ -260,10 +260,6 @@ nsSocketTransportService::ServiceEventQ()
|
|||
{
|
||||
nsAutoLock lock(mEventQLock);
|
||||
|
||||
// wait should not block
|
||||
if (mThreadEvent)
|
||||
PR_WaitForPollableEvent(mThreadEvent);
|
||||
|
||||
head = mEventQ.mHead;
|
||||
mEventQ.mHead = nsnull;
|
||||
mEventQ.mTail = nsnull;
|
||||
|
@ -593,8 +589,11 @@ nsSocketTransportService::Run()
|
|||
//
|
||||
// service the event queue (mPollList[0].fd == mThreadEvent)
|
||||
//
|
||||
if (mPollList[0].out_flags == PR_POLL_READ)
|
||||
if (mPollList[0].out_flags == PR_POLL_READ) {
|
||||
// acknowledge pollable event (wait should not block)
|
||||
PR_WaitForPollableEvent(mThreadEvent);
|
||||
active = ServiceEventQ();
|
||||
}
|
||||
}
|
||||
else {
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче