if (this._poll) { this._poll.cancel(); this._cometd._polling=false; dojo.debug("tunnel opening cancelled"); dojo.event.topic.publish("/cometd/meta", {cometd:this._cometd,action:"connect",successful:false,state:this._cometd.state(),cancel:true}); this._cometd._backoff(); this.disconnect(); this.tunnelCollapse(); }