fix: call resolvePendingPeers before early return in processOutboxTick

When all peers are pending (no active peers with outbox entries),
processOutboxTick returned early at line 141 before reaching
resolvePendingPeers at line 302. Pending peers were never resolved
because the only code path to resolvePendingPeers was after the
active-peer delivery loop — which never ran.
This commit is contained in:
Jannis Braun
2026-04-20 17:41:34 +02:00
parent 34fe9115b9
commit b40c57f227
@@ -139,6 +139,9 @@ async function processOutboxTick(): Promise<void> {
.all();
if (entries.length === 0) {
// No active-peer entries to deliver, but pending peers may still need
// handshake resolution. Always run resolvePendingPeers() before returning.
await resolvePendingPeers();
return;
}