Update ResponseReceiver.java

This commit is contained in:
Andrea Cavalli 2020-10-13 03:00:17 +02:00
parent f38fe387a6
commit ce68fb92f8

View File

@ -70,12 +70,16 @@ public class ResponseReceiver extends Thread implements AutoCloseable {
eventsHandler.handleClientEvents(clientId, lastClientClosed, clientEventIds, clientEvents); eventsHandler.handleClientEvents(clientId, lastClientClosed, clientEventIds, clientEvents);
} }
lastClientId = clientIds[sortIndex[i]]; if (i < resultsCount) {
lastClientIdEventsCount = 0; lastClientId = clientIds[sortIndex[i]];
lastClientClosed = false; lastClientIdEventsCount = 0;
lastClientClosed = false;
}
} }
lastClientIdEventsCount++; if (i < resultsCount) {
lastClientIdEventsCount++;
}
} }
Arrays.fill(events, null); Arrays.fill(events, null);
} }