fixes bug 192294 "hangs at various URLs (Windows 9x-specific)" r=wtc sr=bz a=asa

This commit is contained in:
darin%netscape.com 2003-02-13 00:06:07 +00:00
Родитель 2c285c0b06
Коммит eab16107c6
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -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 {
//