Bugfix: silent IOException because it's mostly due a process who is dead but its handle is still alive
This commit is contained in:
@@ -550,17 +550,23 @@ public class Client {
|
||||
|
||||
long last_update_status = 0;
|
||||
this.log.debug("renderer output");
|
||||
try {
|
||||
while ((line = input.readLine()) != null) {
|
||||
nb_lines++;
|
||||
this.updateRenderingMemoryPeak(line, ajob);
|
||||
|
||||
this.log.debug(line);
|
||||
//this.log.debug(line);
|
||||
if ((new Date().getTime() - last_update_status) > 2000) { // only call the update every two seconds
|
||||
this.updateRenderingStatus(line, nb_lines, ajob);
|
||||
last_update_status = new Date().getTime();
|
||||
}
|
||||
}
|
||||
input.close();
|
||||
}
|
||||
catch (IOException err1) { // for the input.readline
|
||||
// most likely The handle is invalid
|
||||
this.log.error("Client:runRenderer exception(B) (silent error) " + err1);
|
||||
}
|
||||
this.log.debug("end of rendering");
|
||||
}
|
||||
catch (Exception err) {
|
||||
|
||||
Reference in New Issue
Block a user