nsresult  rv = NS_OK; mStatus = status;  NS_ASSERTION(!PR_CLIST_IS_EMPTY(this), "request is not queue on lookup"); if (!PR_CLIST_IS_EMPTY(this)) { nsDNSService::Lock();
PRBool ignore = PR_FALSE; nsDNSService::Lock(); if (PR_CLIST_IS_EMPTY(this)) {   ignore = PR_TRUE; } else {
nsDNSRequest::Cancel(nsresult  status){    NS_ASSERTION(NS_FAILED(status), "shouldn't cancel with a success code");    nsresult  rv = NS_OK;    mStatus = status;        NS_ASSERTION(!PR_CLIST_IS_EMPTY(this), "request is not queue on lookup");    if (!PR_CLIST_IS_EMPTY(this)) {        nsDNSService::Lock();        PR_REMOVE_AND_INIT_LINK(this);        nsDNSService::Unlock();    }    if (mUserListener)  rv = FireStop(status);    mLookup = nsnull;    return rv;}