rem: ev.server = this.primServ = new CIRCServer (this, c); 
add: try { ev.server = this.primServ = new CIRCServer (this, c); this.eventPump.addEvent (ev); connected = true; } catch (ex) { dd ("Caught following exception creating new CIRCServer in " + "CIRCNetwork::onDoConnect().\n" + dumpObjectTree(ex)); } }   if (!connected) { /* connect failed, try again  */ ev = new CEvent ("network", "info", this, "onInfo"); ev.msg = "Couldn't connect to " + this.serverList[host].name + ":" + this.serverList[host].port + ", trying next server in list..."; 
context: function net_doconnect(e){    var c;        if ((this.primServ) && (this.primServ.connection.isConnected))        return true;    var attempt = (typeof e.attempt == "undefined") ? 1 : e.attempt + 1;    var host = (typeof e.lastHost == "undefined") ? 0 : e.lastHost + 1;    var ev;    if (attempt > this.MAX_CONNECT_ATTEMPTS)        return false;	    try    {        c = new CBSConnection();    }    catch (ex)    {        dd ("cant make socket.");                ev = new CEvent ("network", "error", this, "onError");        ev.meat = "Unable to create socket: " + ex;        this.eventPump.addEvent (ev);        return false;    }    if (host >= this.serverList.length)        host = 0;    if (c.connect (this.serverList[host].name, this.serverList[host].port,                   (void 0), true))    {        ev = new CEvent ("network", "connect", this, "onConnect");        ev.server = this.primServ = new CIRCServer (this, c);        this.eventPump.addEvent (ev);    }    else    { /* connect failed, try again  */        ev = new CEvent ("network", "do-connect", this, "onDoConnect");        ev.lastHost = host;        ev.attempt = attempt;        this.eventPump.addEvent (ev);    }    return true;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/bdcd48e1ca17848467de7b0eedf5a486db3b4464/irc.js/buggy/js/lib/irc.js