Bug 165090 - spurious "Server has disconnected" messages

r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@135332 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ere%atp.fi
2002-12-15 19:36:19 +00:00
parent 0467e7ac4c
commit ce66069b6e

View File

@@ -1506,8 +1506,10 @@ NS_IMETHODIMP nsImapProtocol::OnStopRequest(nsIRequest *request, nsISupports *ct
// but the situation may still be unexpected
else if (GetConnectionStatus() >= 0 && !DeathSignalReceived())
{
// alert the user that the connection was closed unexpectedly
AlertUserEventUsingId(IMAP_SERVER_DISCONNECTED);
// alert the user that the connection was closed unexpectedly,
// but only if we are running an URL
if (m_runningUrl)
AlertUserEventUsingId(IMAP_SERVER_DISCONNECTED);
}
PR_CEnterMonitor(this);