зеркало из https://github.com/mozilla/pjs.git
Bug 254394 mozilla nsHttpHandler PR_Assert WellOrdered
patch by jw6057@bacon.qcc.mass.edu r=darin sr=darin
This commit is contained in:
Родитель
9e3fb83241
Коммит
36aee346fa
|
@ -86,6 +86,10 @@ nsHttpConnectionMgr::Init(PRUint16 maxConns,
|
||||||
{
|
{
|
||||||
LOG(("nsHttpConnectionMgr::Init\n"));
|
LOG(("nsHttpConnectionMgr::Init\n"));
|
||||||
|
|
||||||
|
nsresult rv;
|
||||||
|
nsCOMPtr<nsIEventTarget> sts = do_GetService(kSocketTransportServiceCID, &rv);
|
||||||
|
if NS_FAILED(rv) return rv;
|
||||||
|
|
||||||
nsAutoMonitor mon(mMonitor);
|
nsAutoMonitor mon(mMonitor);
|
||||||
|
|
||||||
// do nothing if already initialized
|
// do nothing if already initialized
|
||||||
|
@ -102,8 +106,7 @@ nsHttpConnectionMgr::Init(PRUint16 maxConns,
|
||||||
mMaxRequestDelay = maxRequestDelay;
|
mMaxRequestDelay = maxRequestDelay;
|
||||||
mMaxPipelinedRequests = maxPipelinedRequests;
|
mMaxPipelinedRequests = maxPipelinedRequests;
|
||||||
|
|
||||||
nsresult rv;
|
mSTEventTarget = sts;
|
||||||
mSTEventTarget = do_GetService(kSocketTransportServiceCID, &rv);
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче