}
nsImapIncomingServer::RemoveConnection(nsIImapProtocol* aImapConnection){    PRInt32 elementIndex = -1;    nsresult rv;    PR_CEnterMonitor(this);    if (aImapConnection)    {        // preventing earlier release of the protocol        nsCOMPtr<nsIImapProtocol>            aConnection(do_QueryInterface(aImapConnection,&rv));        aImapConnection->TellThreadToDie(PR_TRUE);        m_connectionCache->RemoveElement(aImapConnection);    }    PR_CExitMonitor(this);    return NS_OK;}