修复逻辑
parent
50ced7a834
commit
0b734f3aa7
|
@ -63,15 +63,15 @@ public class UserThread extends Thread{
|
|||
if (newClick.color == (cur.get() ? Cross.BLACK : Cross.WHITE) && newClick.color == self){
|
||||
CalDataUtil.draw(newClick, map);
|
||||
cur.set(!cur.get());
|
||||
}
|
||||
|
||||
users.forEach(u -> {
|
||||
try {
|
||||
if (u.isAlive) u.sendMsg(DataUtil.parseData(map, newClick));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
users.forEach(u -> {
|
||||
try {
|
||||
if (u.isAlive) u.sendMsg(DataUtil.parseData(map, newClick));
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (Exception e){
|
||||
System.out.println("::" + e.getMessage());
|
||||
System.out.println("连接断开");
|
||||
|
|
Loading…
Reference in New Issue