rem: if (!network.connecting) 
add: if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) 
context: function cmdCancel(e){    var network = e.network;    if (!network.connecting)    {        display(MSG_NOTHING_TO_CANCEL, MT_ERROR);        return;    }    network.cancelConnect = true;    display(getMsg(MSG_CANCELLING, network.unicodeName));    if (network.isConnected())    {        // Pull the plug on the current connection, or...        network.dispatch("disconnect");    }    else    {        // ...try a reconnect (which will fail us).        var ev = new CEvent("network", "do-connect", network, "onDoConnect");        network.eventPump.addEvent(ev);    }}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/5657c90bff7bfc38dafe1dfc4c6f847f40639d66/commands.js/buggy/xul/content/commands.js