separation

This commit is contained in:
ZZ 2022-10-09 14:40:24 +08:00
parent 731ab343b5
commit c0c72bc3ca

View File

@ -78,9 +78,10 @@ public class ChargingPileServer {
public static void disconnPileNGuns(String pileNo) {
ClientHandler handler = handlerMap.remove(pileNo);
if(handler!=null)
if(handler!=null) {
handler.closeConnection();
log.debug("handler [{}] for ({}) close connection", handler.getName(), pileNo);
log.debug("handler [{}] for ({}) close connection", handler.getName(), pileNo);
}
String pkey = "pile:".concat(pileNo);
Map<String, Object> cachePile = REDIS.getCacheMap(pkey);
putemDisconn(pileNo, cachePile);