gDone = PR_TRUE;
if (--mStopCount == 0) gDone = PR_TRUE;
    NS_IMETHOD OnStopRequest(nsIChannel *channel, nsISupports *ctxt,                              nsresult status, const PRUnichar *errorMsg) {        printf("ending status=%0x total=%d\n", status, mTotal);        gDone = PR_TRUE;        return NS_OK;    }