Erweiteurngen
This commit is contained in:
@@ -198,19 +198,20 @@ public class ClientConnectionService {
|
||||
@Scheduled(fixedRateString = "${app.client.ping.interval-seconds:15}000")
|
||||
public void sendPingsToAllClients() {
|
||||
log.info("[ClientConnectionService] Ping cycle started - pluginConnected={}, connectedClients={}",
|
||||
pluginManager.isConnected(), connectedClients.size());
|
||||
pluginManager.isConnected(), getConnectedClientCount());
|
||||
|
||||
if (!pluginManager.isConnected()) {
|
||||
log.info("[ClientConnectionService] Plugin not connected, skipping ping cycle");
|
||||
return;
|
||||
}
|
||||
|
||||
if (connectedClients.isEmpty()) {
|
||||
int connectedCount = getConnectedClientCount();
|
||||
if (connectedCount == 0) {
|
||||
log.info("[ClientConnectionService] No connected clients, skipping ping cycle");
|
||||
return;
|
||||
}
|
||||
|
||||
log.info("[ClientConnectionService] Starting ping cycle for {} clients", connectedClients.size());
|
||||
log.info("[ClientConnectionService] Starting ping cycle for {} clients", connectedCount);
|
||||
Instant now = Instant.now();
|
||||
|
||||
for (Map.Entry<String, ClientState> entry : connectedClients.entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user