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 end_of_line = lf
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true
[*.java] [*.java]
indent_style = space indent_style = space

View file

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