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