Bug 254394 mozilla nsHttpHandler PR_Assert WellOrdered

patch by jw6057@bacon.qcc.mass.edu r=darin sr=darin
This commit is contained in:
timeless%mozdev.org 2004-08-26 13:45:28 +00:00
Родитель 9e3fb83241
Коммит 36aee346fa
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -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;
} }