TellThreadToDie(PR_FALSE);
TellThreadToDie(PR_TRUE);
NS_IMETHODIMP nsImapProtocol::IsBusy(PRBool *aIsConnectionBusy,                                     PRBool *isInboxConnection){	if (!aIsConnectionBusy || !isInboxConnection)		return NS_ERROR_NULL_POINTER;  NS_LOCK_INSTANCE();    nsresult rv = NS_OK;  *aIsConnectionBusy = PR_FALSE;    *isInboxConnection = PR_FALSE;    if (!m_channel)    {        // ** jt -- something is really wrong kill the thread        TellThreadToDie(PR_FALSE);        rv = NS_ERROR_FAILURE;    }    else    {        if (m_runningUrl) // do we have a url? That means we're working on                          // it...             *aIsConnectionBusy = PR_TRUE;        if (GetServerStateParser().GetSelectedMailboxName() &&             PL_strcasecmp(GetServerStateParser().GetSelectedMailboxName(),                          "Inbox") == 0)            *isInboxConnection = PR_TRUE;            }  NS_UNLOCK_INSTANCE();  return rv;}