Make shutdown InterruptedExceptions not noisy
This commit is contained in:
parent
6b6b01ccb7
commit
d1d97d986a
1 changed files with 8 additions and 4 deletions
|
|
@ -228,10 +228,12 @@ public class MapManager {
|
||||||
try {
|
try {
|
||||||
r.run();
|
r.run();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
|
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
|
||||||
Log.severe("Exception during render job: " + r);
|
Log.severe("Exception during render job: " + r);
|
||||||
x.printStackTrace();
|
x.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (RejectedExecutionException rxe) { /* Pool shutdown - nominal for reload or unload */
|
} catch (RejectedExecutionException rxe) { /* Pool shutdown - nominal for reload or unload */
|
||||||
}
|
}
|
||||||
|
|
@ -244,10 +246,12 @@ public class MapManager {
|
||||||
try {
|
try {
|
||||||
command.run();
|
command.run();
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
|
if (!(x instanceof InterruptedException)) { // Avoid shutdown noise
|
||||||
Log.severe("Exception during render job: " + command);
|
Log.severe("Exception during render job: " + command);
|
||||||
x.printStackTrace();
|
x.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, delay, unit);
|
}, delay, unit);
|
||||||
} catch (RejectedExecutionException rxe) {
|
} catch (RejectedExecutionException rxe) {
|
||||||
return null; /* Pool shut down when we reload or unload */
|
return null; /* Pool shut down when we reload or unload */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue