                 try {
                     _socket.close();
                 } catch (err :Error) {
-                    Log.getLog(this).warning("Error closing failed socket [error=" + err + "].");
+                    log.warning("Error closing failed socket [error=" + err + "].");
                 }
             }
             removeListeners();

package com.threerings.presents.client {

import flash.errors.IOError;

import flash.events.Event;
import flash.events.IOErrorEvent;

import flash.net.Socket;

import flash.utils.ByteArray;
import flash.utils.Endian;

import com.threerings.util.Log;


    protected var _frameReader :FrameReader;

    protected var _socket :Socket;
    protected var _lastWrite :uint;

    protected var _outq :Array = new Array();
    protected var _writer :Timer;
    protected var _tqsize :int = 0;

    protected const log :Log = Log.getLog(this);

    /** The current port we'll try to connect to. */
    protected var _portIdx :int = -1;
