function doCurrentStatusEnd(){    // Reset refresh button.    if ((state.state == STATE_LIST_AND_LOAD) || (state.state == STATE_LIST_THEN_LOAD))        document.getElementById("refreshNow").disabled = false;    // Check that /list finished ok if we're just doing a list.    if (state.state == STATE_LIST_THEN_LOAD)    {        if ("error" in network._list)        {            updateProgress(MSG_CD_ERROR_LIST);            // Can't seem to "undefine" the parameters using the function format.            setTimeout("updateProgress()", 10000);            // Bail out if there was an error!            return;        }        else        {            // Replace files.            updateProgress();        }    }    // Finish file handling work.    if ((state.state == STATE_LOAD) || (state.state == STATE_LIST_AND_LOAD))    {        if (channels.length > 0)            channelTreeView.childData.appendChildren(channels);        state.loadFile.close();        delete state.loadFile;        delete state.loadPendingData;        delete state.loadChunk;        delete state.loadedSoFar;        delete state.loadNeverComplete;        updateProgress();        runFilter();    }    if (state.state == STATE_LIST_THEN_LOAD)        setState(STATE_LOAD);    else        setState(STATE_IDLE);}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/df3574b661190be2fc155155fabbfe2d4af307a3/channels.js/buggy/extensions/irc/xul/content/channels.js