Work around for necko problem. After reading a file, necko returns NS_BINDING_ABORTED which is defined as an error code.

It really should be defined as success. I'm redefining the return code to NS_OK if NS_BINDING_ABORTED is returned until
necko can fix this.
This commit is contained in:
mscott%netscape.com 1999-08-05 22:17:52 +00:00
Родитель fe0c6b740c
Коммит 1cce7362d3
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -164,6 +164,12 @@ NS_IMETHODIMP nsMailboxProtocol::OnStopRequest(nsIChannel * aChannel, nsISupport
// is coming from netlib so they are never going to ping us again with on data available. This means
// we'll never be going through the Process loop...
/* mscott - the NS_BINDING_ABORTED is a hack to get around a problem I have
with the necko code...it returns this and treats it as an error when
it really isn't an error! I'm trying to get them to change this.
*/
if (aStatus == NS_BINDING_ABORTED)
aStatus = NS_OK;
nsMsgProtocol::OnStopRequest(aChannel, ctxt, aStatus, aMsg);
return CloseSocket();
}