public void forceStopTask(){
  mSpeedTestMode=SpeedTestMode.NONE;
  mForceCloseSocket=true;
  if (mFtpInputstream != null) {
    try {
      mFtpInputstream.close();
    }
 catch (    IOException e) {
    }
  }
  if (mFtpOutputstream != null) {
    try {
      mFtpOutputstream.close();
    }
 catch (    IOException e) {
    }
  }
}

public void forceStopTask ( ) { mSpeedTestMode = SpeedTestMode . NONE ; mForceCloseSocket = true ; if ( mFtpInputstream != null ) { try { mFtpInputstream . close ( ) ; } catch ( IOException e ) { } } if ( mFtpOutputstream != null ) { try { mFtpOutputstream . close ( ) ; } catch ( IOException e ) { } } }
close socket / stop download / upload operations .
