[tor-commits] [flashproxy/master] Check that socket is defined before checking bufferedAmount.