reformat RouteServer
This commit is contained in:
parent
f6afafb46c
commit
5c970ed71f
1 changed files with 10 additions and 10 deletions
|
@ -220,7 +220,7 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
|
||||||
rc.keyValues.put(e.getKey().substring(8), e.getValue());
|
rc.keyValues.put(e.getKey().substring(8), e.getValue());
|
||||||
} else if (e.getKey().equals("straight")) {
|
} else if (e.getKey().equals("straight")) {
|
||||||
String[] sa = e.getValue().split(",");
|
String[] sa = e.getValue().split(",");
|
||||||
for (int i = 0; i<sa.length;i++) {
|
for (int i = 0; i < sa.length; i++) {
|
||||||
int v = Integer.valueOf(sa[i]);
|
int v = Integer.valueOf(sa[i]);
|
||||||
if (wplist.size() > v) wplist.get(v).direct = true;
|
if (wplist.size() > v) wplist.get(v).direct = true;
|
||||||
}
|
}
|
||||||
|
@ -265,17 +265,17 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
|
||||||
} finally {
|
} finally {
|
||||||
cr = null;
|
cr = null;
|
||||||
if (br != null) try {
|
if (br != null) try {
|
||||||
br.close();
|
br.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
if (bw != null) try {
|
if (bw != null) try {
|
||||||
bw.close();
|
bw.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
if (clientSocket != null) try {
|
if (clientSocket != null) try {
|
||||||
clientSocket.close();
|
clientSocket.close();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
terminated = true;
|
terminated = true;
|
||||||
synchronized (threadPoolSync) {
|
synchronized (threadPoolSync) {
|
||||||
threadPoolSync.notifyAll();
|
threadPoolSync.notifyAll();
|
||||||
|
|
Loading…
Reference in a new issue