bug #54239 (r=dougt). PSM can be initialized on the wrong thread...

This commit is contained in:
rpotts%netscape.com 2000-10-03 04:49:51 +00:00
Родитель 5f0d4a7e7a
Коммит 355a21abce
1 изменённых файлов: 12 добавлений и 0 удалений

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

@ -24,12 +24,24 @@
#include "nsHTTPSHandler.h"
#include "nsISocketTransportService.h"
#include "nsIServiceManager.h"
#include "nsIPSMComponent.h"
static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID);
nsHTTPSHandler::nsHTTPSHandler()
: nsHTTPHandler()
{
nsresult rv;
nsISupports *psm = nsnull;
//
// Initialize the PSM component.
// This is to ensure that PSM is initialized on the main UI thread.
//
rv = nsServiceManager::GetService( PSM_COMPONENT_CONTRACTID,
NS_GET_IID(nsIPSMComponent),
(nsISupports**)&psm);
NS_IF_RELEASE(psm);
}
nsHTTPSHandler::~nsHTTPSHandler()