зеркало из https://github.com/mozilla/pjs.git
fix imap timeouts to use PRTimeInterval r=naving, sr=sspitzer 90079
This commit is contained in:
Родитель
49b6296a99
Коммит
c9a208a037
|
@ -101,7 +101,7 @@ static NS_DEFINE_CID(kStreamListenerTeeCID, NS_STREAMLISTENERTEE_CID);
|
|||
#define IMAP_ENV_HEADERS "From To Cc Subject Date Message-ID "
|
||||
#define IMAP_DB_HEADERS "Priority X-Priority References Newsgroups"
|
||||
#define IMAP_ENV_AND_DB_HEADERS IMAP_ENV_HEADERS IMAP_DB_HEADERS
|
||||
static const PRInt32 kImapSleepTime = 1000000;
|
||||
static const PRIntervalTime kImapSleepTime = PR_MillisecondsToInterval(1000);
|
||||
static PRInt32 gPromoteNoopToCheckCount = 0;
|
||||
|
||||
// **** helper class for downloading line ****
|
||||
|
@ -3788,7 +3788,7 @@ char* nsImapProtocol::CreateNewLineFromSocket()
|
|||
// wait on the data available monitor!!
|
||||
PR_EnterMonitor(m_dataAvailableMonitor);
|
||||
// wait for data arrival
|
||||
PR_Wait(m_dataAvailableMonitor, /* PR_INTERVAL_NO_TIMEOUT */ 50);
|
||||
PR_Wait(m_dataAvailableMonitor, /* PR_INTERVAL_NO_TIMEOUT */ PR_MillisecondsToInterval(50));
|
||||
PR_ExitMonitor(m_dataAvailableMonitor);
|
||||
|
||||
// now that we are awake...process some events
|
||||
|
|
Загрузка…
Ссылка в новой задаче