Fix for bug 67409 -- don't use the necko connection counts to see if we're busy, because mailnews holds IMAP connections open, and that causes us to remain busy for too long. Looking for pending PLEvents is enough. r=sdagley, saari, sr=kin.

This commit is contained in:
sfraser%netscape.com 2001-09-25 22:15:03 +00:00
Родитель 3a2b71eda2
Коммит 0485447596
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -290,6 +290,11 @@ PRBool nsMacMessagePump::BrowserIsBusy()
do // convenience for breaking. We'll start by assuming that we're busy.
{
/*
* Don't count connections for now; mailnews holds server connections open,
* and that causes us to behave as busy even when we're not, which eats CPU
* time and makes machines run hot.
nsCOMPtr<nsISocketTransportService> socketTransport = do_GetService(kSocketTransportServiceCID);
if (socketTransport)
{
@ -307,7 +312,7 @@ PRBool nsMacMessagePump::BrowserIsBusy()
if (inUseTransports > 0)
break;
}
*/
if (mToolkit->ToolkitBusy())
break;