reformat RouteServer again
This commit is contained in:
parent
5c970ed71f
commit
cebcd566c6
2 changed files with 16 additions and 12 deletions
|
@ -3,6 +3,7 @@ root = true
|
|||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.java]
|
||||
indent_style = space
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue