if (aResult) *aResult = urlRun;
nsImapIncomingServer::LoadNextQueuedUrl(PRBool *aResult){    PRUint32 cnt = 0;    nsresult rv = NS_OK;	PRBool urlRun = PR_FALSE;    PR_CEnterMonitor(this);    m_urlQueue->Count(&cnt);    if (cnt > 0)    {        nsCOMPtr<nsISupports>            aSupport(getter_AddRefs(m_urlQueue->ElementAt(0)));        nsCOMPtr<nsIImapUrl>            aImapUrl(do_QueryInterface(aSupport, &rv));        if (aImapUrl)        {            nsISupports *aConsumer =                (nsISupports*)m_urlConsumers.ElementAt(0);            NS_IF_ADDREF(aConsumer);                        nsIImapProtocol * protocolInstance = nsnull;            rv = CreateImapConnection(nsnull, aImapUrl,                                               &protocolInstance);            if (NS_SUCCEEDED(rv) && protocolInstance)            {				nsCOMPtr<nsIURI> url = do_QueryInterface(aImapUrl, &rv);				if (NS_SUCCEEDED(rv) && url)				{					rv = protocolInstance->LoadUrl(url, aConsumer);					urlRun = PR_TRUE;				}                m_urlQueue->RemoveElementAt(0);                m_urlConsumers.RemoveElementAt(0);            }            NS_IF_RELEASE(aConsumer);        }    }	if (aResult)		*aResult = urlRun;    PR_CExitMonitor(this);    return rv;}