зеркало из https://github.com/mozilla/gecko-dev.git
Fixed warning.
This commit is contained in:
Родитель
c1b191599a
Коммит
7982bac600
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче