diff --git a/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java b/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java index eb3c8ab..9805594 100644 --- a/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java +++ b/jtt808-server/src/main/java/io/github/yezhihao/netmc/websocket/WsChannelInboundHandler.java @@ -1,5 +1,6 @@ package io.github.yezhihao.netmc.websocket; +import io.github.yezhihao.netmc.session.SessionManager; import io.netty.channel.Channel; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; @@ -10,6 +11,7 @@ import io.netty.util.concurrent.GlobalEventExecutor; import io.netty.util.internal.StringUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import org.yzh.commons.constant.BusinessConstant; import org.yzh.commons.util.BusinessCacheUtil; import org.yzh.web.util.SendCommandUtil; @@ -24,6 +26,9 @@ public class WsChannelInboundHandler extends SimpleChannelInboundHandler 0) { SendCommandUtil.getService().sendToDevice(null, null); } // emptyTimes = 0;