mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
add cancel method to nntp protocol r=mscott
This commit is contained in:
parent
5622335cd1
commit
8c680d77b3
@ -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:
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user