|
@@ -59,5 +59,15 @@ public class WebSokcetTask {
|
|
|
session.getBasicRemote().sendText("ping");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if(Common.sessionMap.containsKey(Common.GAME_FIVE_CODE)){
|
|
|
+ Session session = Common.sessionMap.get(Common.GAME_FIVE_CODE);
|
|
|
+ if(!session.isOpen()){
|
|
|
+ Common.sessionMap.remove(Common.GAME_FIVE_CODE);
|
|
|
+ session.close();
|
|
|
+ }else{
|
|
|
+ session.getBasicRemote().sendText("ping");
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|