v0.8 Fix for interrupt process issue; Refactoring.

This commit is contained in:
Dmitry Isaenko 2019-09-25 05:43:47 +03:00
parent 9b73a4d19d
commit 6f1700fbab
9 changed files with 1655 additions and 1515 deletions

View file

@ -374,23 +374,14 @@ public class NETCommunications extends Task<Void> { // todo: thows IOException?
}
currSockOS.write(byteBuf);
//-----------------------------------------/
try {
logPrinter.updateProgress((currentOffset+readPice)/(count/100.0) / 100.0);
}catch (InterruptedException ie){
getException().printStackTrace(); // TODO: Do something with this
}
logPrinter.updateProgress((currentOffset+readPice)/(count/100.0) / 100.0);
//-----------------------------------------/
currentOffset += readPice;
}
currSockOS.flush(); // TODO: check if this really needed.
bis.close();
//-----------------------------------------/
try{
logPrinter.updateProgress(1.0);
}
catch (InterruptedException ie){
getException().printStackTrace(); // TODO: Do something with this
}
logPrinter.updateProgress(1.0);
//-----------------------------------------/
}
catch (IOException ioe){