This commit is contained in:
warren%netscape.com 2000-07-11 09:46:51 +00:00
Родитель c1b191599a
Коммит 7982bac600
3 изменённых файлов: 5 добавлений и 3 удалений

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

@ -325,7 +325,7 @@ nsFileChannel::AsyncRead(nsIStreamListener *listener,
done:
if (NS_FAILED(rv)) {
nsresult rv2 = mLoadGroup->RemoveChannel(this, ctxt, rv, nsnull); // XXX fix error message
NS_ASSERTION(NS_SUCCEEDED(rv), "RemoveChannel failed");
NS_ASSERTION(NS_SUCCEEDED(rv2), "RemoveChannel failed");
// release the transport so that we don't think we're in progress
mFileTransport = nsnull;
}
@ -377,7 +377,7 @@ nsFileChannel::AsyncWrite(nsIInputStream *fromStream,
done:
if (NS_FAILED(rv)) {
nsresult rv2 = mLoadGroup->RemoveChannel(this, ctxt, rv, nsnull); // XXX fix error message
NS_ASSERTION(NS_SUCCEEDED(rv), "RemoveChannel failed");
NS_ASSERTION(NS_SUCCEEDED(rv2), "RemoveChannel failed");
// release the transport so that we don't think we're in progress
mFileTransport = nsnull;
}

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

@ -692,6 +692,8 @@ nsResChannel::OnStopRequest(nsIChannel* transportChannel, nsISupports* context,
return AsyncRead(GetUserListener(), mUserContext);
case ASYNC_WRITE:
return AsyncWrite(mFromStream, mUserObserver, mUserContext);
default:
break;
}
}
return EndRequest(aStatus, aMsg);

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

@ -39,7 +39,7 @@ public:
printf("failed to get current thread\n");
return rv;
}
printf("running %d on thread %x\n", mNum, thread);
printf("running %d on thread %x\n", mNum, thread.get());
// if we don't do something slow, we'll never see the other
// worker threads run