reformat RouteServer again

This commit is contained in:
afischerdev 2022-11-13 16:27:37 +01:00
parent 5c970ed71f
commit cebcd566c6
2 changed files with 16 additions and 12 deletions

View file

@ -3,6 +3,7 @@ root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.java]
indent_style = space

View file

@ -264,18 +264,21 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
e.printStackTrace();
} finally {
cr = null;
if (br != null) try {
br.close();
} catch (Exception e) {
}
if (bw != null) try {
bw.close();
} catch (Exception e) {
}
if (clientSocket != null) try {
clientSocket.close();
} catch (Exception e) {
}
if (br != null)
try {
br.close();
} catch (Exception e) {
}
if (bw != null)
try {
bw.close();
} catch (Exception e) {
}
if (clientSocket != null)
try {
clientSocket.close();
} catch (Exception e) {
}
terminated = true;
synchronized (threadPoolSync) {
threadPoolSync.notifyAll();