提高程序的稳定性

This commit is contained in:
Administrator
2023-03-09 08:26:54 +08:00
parent f2b6394688
commit 2d6122480a
14 changed files with 298 additions and 133 deletions
@@ -47,6 +47,9 @@ public class KLALBServer {
tcc.setTunnel(tll);
UUID uid=new UUID(din.readLong(),din.readLong());
tcc.handshake(10);
IOThreadManager nx = null;
synchronized (tcpl) {
if(whm.containsKey(uid)) {
@@ -80,8 +83,6 @@ public class KLALBServer {
whm.put(uid, nx);
}
}
tcc.getDout().write(0);
tcc.getDout().flush();
nx.handleRemote(tcc);
}catch(IOException e) {
e.printStackTrace();