reformat RouteServer again
This commit is contained in:
parent
5c970ed71f
commit
cebcd566c6
2 changed files with 16 additions and 12 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue