Commit 5ec135e1 authored by AfirSraftGarrier's avatar AfirSraftGarrier

格式并加些打印

parent c1ee6f31
......@@ -11,7 +11,6 @@ import org.springframework.stereotype.Component;
@Component
@Slf4j
public class ForwardClientInactiveEventHandler {
@Autowired
DeviceManager deviceManager;
@Autowired
......@@ -20,7 +19,6 @@ public class ForwardClientInactiveEventHandler {
EventPublisher eventPublisher;
public ForwardClientInactiveEventHandler() {
}
@EventListener
......@@ -35,14 +33,12 @@ public class ForwardClientInactiveEventHandler {
String appId = session.getAppId();
boolean result = forwardManager.removeSessionByChannelId(channelId);
if (result) {
// TODO forward client 离线需要强制中断该设备对应的 device client
// forward client 离线需要强制中断该设备对应的 device client
DeviceClientBeForcedOfflineEvent deviceClientBeForcedOfflineEvent = new DeviceClientBeForcedOfflineEvent();
deviceClientBeForcedOfflineEvent.setAppId(appId);
eventPublisher.publishEvent(deviceClientBeForcedOfflineEvent);
log.debug("forward client inactive success ...");
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment