getThread.yield();
Thread.yield();
   protected boolean getFile(String remoteFile, String localFile) {      boolean flag = true;      if(ftpOutputStream == null) {         printFTPInfo("Not connected to any server!");         return false;      }      if(!loggedIn) {         printFTPInfo("Login was not successful! Aborting!");         return false;      }      final String localFileF = localFile;      final String remoteFileF = remoteFile;      Runnable getRun = new Runnable () {         // set the thread to run.         public void run() {            Socket socket = null;            DataInputStream datainputstream = null;            String localFileFull = localFileF;            executeCommand("TYPE","I");            try {               socket = createPassiveSocket("RETR " + remoteFileF);               if(socket != null) {                  datainputstream = new DataInputStream(socket.getInputStream());                  writeHeader(localFileFull);                  byte abyte0[] = new byte[recordLength];                  StringBuffer rb = new StringBuffer(recordOutLength);                  int c = 0;                  int kj = 0;                  int len = 0;                  for(int j = 0; j != -1 && !aborted;) {                     j = datainputstream.read();                     if(j == -1)                        break;                     c ++;                     abyte0[len++] = (byte)j;                     if (len == recordLength) {                        rb.setLength(0);                        parseFFD(abyte0,rb);                        len =0;                        status.setCurrentRecord(c / recordLength);                        fireStatusEvent();                     }                     getThread.yield();         //            if ((c / recordLength) == 200)         //               aborted = true;                  }                  System.out.println(c);                  if (c == 0) {                     status.setCurrentRecord(c);                     fireStatusEvent();                  }                  else {                     if (!aborted)                        parseResponse();                  }                  writeFooter();//                  parseResponse();                  printFTPInfo("Transfer complete!");               }            }            catch(InterruptedIOException iioe) {               printFTPInfo("Interrupted! " + iioe.getMessage());            }            catch(Exception _ex) {               printFTPInfo("Error! " + _ex);            }            finally {               try {                   socket.close();               }               catch(Exception _ex) { }               try {                  datainputstream.close();               }               catch(Exception _ex) { }               try {                  writeFooter();               }               catch(Exception _ex) { }               disconnect();            }         }      };      getThread = new Thread(getRun);      getThread.setPriority(2);      getThread.start();      return flag;   }