I2CP: Don't send multiple SetDate messages to sessions with subsessions
Some checks failed
Sync Primary Repository to GitHub Mirror / sync (push) Has been cancelled
Daily Workflow / daily-job (push) Has been cancelled
Daily Workflow / javadoc-latest (push) Has been cancelled
Daily Workflow / build-java7 (push) Has been cancelled
Java CI / build (push) Has been cancelled
Java CI / javadoc-latest (push) Has been cancelled
Java CI / build-java7 (push) Has been cancelled
Dockerhub / docker (push) Has been cancelled
Java with IzPack Snapshot Setup / setup (push) Has been cancelled

as reported by mareki2p
This commit is contained in:
zzz
2025-06-30 16:16:41 -04:00
parent daecb35a24
commit 5a1f01d81d

View File

@ -863,7 +863,13 @@ class ClientManager {
public void timeReached() {
if (!_isStarted)
return;
for (ClientConnectionRunner runner : _runners.values()) {
if (_runners.isEmpty()) {
schedule(LOOP_TIME);
return;
}
// dedup subsessions
Set<ClientConnectionRunner> runners = new HashSet<ClientConnectionRunner>(_runners.values());
for (ClientConnectionRunner runner : runners) {
if (runner instanceof QueuedClientConnectionRunner)
continue;
if (runner.isDead())