  *  </p>
  *
  *  <p>
- *  When used in polling mode, this Channel polls the server for new messages 
+ *  When used in polling mode, this Channel polls the server for new messages
  *  based on the <code>polling-interval-seconds</code> property in the configuration file,
  *  and this can be changed by setting the <code>pollingInterval</code> property.
  *  The default value is 3 seconds.
- *  To enable polling, the channel must be connected and the <code>polling-enabled</code> 
- *  property in the configuration file must be set to <code>true</code>, or the 
+ *  To enable polling, the channel must be connected and the <code>polling-enabled</code>
+ *  property in the configuration file must be set to <code>true</code>, or the
  *  <code>pollingEnabled</code> property of the Channel must be set to <code>true</code>.
  *  </p>
  */

        setConnected(false);
        super.internalDisconnect(rejected);
    }
    
    /**
     *  @private
     *  Shuts down the underlying NetConnection for the AMFChannel.
     *  The reason this override is necessary is because the NetConnection may dispatch
     *  a NetStatusEvent after it has been closed and if we're not registered to listen for 
     *  that event the Player will throw an RTE.
     *  The only time this can occur when the channel has been shut down due to a connect
     *  timeout but an error (i.e. 404) response from the server returns later.
     */
    override protected function shutdownNetConnection():void
    {        
        _nc.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
        _nc.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
        // Leave the NetStatusEvent statusHandler registered but set the ignore flag.

    //--------------------------------------------------------------------------
    //
    // Constructor
    //
    //--------------------------------------------------------------------------

    /**
     *  Creates an new AMFChannel instance.
     *
     *  @param id The id of this Channel.
     *
     *  @param uri The uri for this Channel.
     */
    public function AMFChannel(id:String = null, uri:String = null)
    {
        super(id, uri);
    }

    //--------------------------------------------------------------------------
    //
    // Variables
    //
    //--------------------------------------------------------------------------

    /**
     * @private
     * Flag used to indicate that the channel is in the process of reconnecting
     * with the session id in the url.
     */
    protected var _reconnectingWithSessionId:Boolean;

    /**
     *  @private
     *  Flag used to control when we need to handle NetStatusEvents.
     *  If the channel has shutdown due to reaching a connect timeout we need to
     *  continue listening for events (such as 404s) but we've already shutdown so
     *  we must ignore them.
     */
