add: this.primServ.connection.disconnect();  ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connect sequence was cancelled."; ev.errorCode = JSIRC_ERR_CANCELLED; this.eventPump.addEvent(ev); }  else if (this.state == NET_WAITING) { this.state = NET_CANCELLING;  
context: function net_cancel(){    if (this.state == NET_ONLINE)    {        // Pull the plug on the current connection, or...        this.quit();    }    else if ((this.state == NET_CONNECTING) || (this.state == NET_WAITING))    {        this.state = NET_CANCELLING;        // ...try a reconnect (which will fail us).        this.immediateConnect();    }    else    {        dd("Network cancel in odd state: " + this.state);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b79b7716b9ac47c2e85f064b6523c5d9463e16c5/irc.js/clean/extensions/irc/js/lib/irc.js