зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
3a2b71eda2
Коммит
0485447596
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче