add cancel method to nntp protocol r=mscott

This commit is contained in:
bienvenu%netscape.com 1999-11-03 03:17:36 +00:00
parent 5622335cd1
commit 8c680d77b3
2 changed files with 9 additions and 0 deletions

View File

@ -867,6 +867,13 @@ NS_IMETHODIMP nsNNTPProtocol::OnStopRequest(nsIChannel * aChannel, nsISupports *
return CloseSocket();
}
NS_IMETHODIMP nsNNTPProtocol::Cancel() // handle stop button
{
m_nextState = NNTP_ERROR;
return nsMsgProtocol::Cancel();
}
/* The main news load init routine, and URL parser.
The syntax of news URLs is:

View File

@ -159,6 +159,8 @@ public:
char * m_ProxyServer; /* proxy server hostname */
NS_IMETHOD Cancel(); // handle stop button
private:
// over-rides from nsMsgProtocol
virtual nsresult ProcessProtocolState(nsIURI * url, nsIInputStream * inputStream,