From ce66069b6ebdc390fdae9fbb2417c08ae31cb3cc Mon Sep 17 00:00:00 2001 From: "ere%atp.fi" Date: Sun, 15 Dec 2002 19:36:19 +0000 Subject: [PATCH] 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 --- mozilla/mailnews/imap/src/nsImapProtocol.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/imap/src/nsImapProtocol.cpp b/mozilla/mailnews/imap/src/nsImapProtocol.cpp index dc3749d1915..d7d42060145 100644 --- a/mozilla/mailnews/imap/src/nsImapProtocol.cpp +++ b/mozilla/mailnews/imap/src/nsImapProtocol.cpp @@ -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);