From 8680195da69c33be6284940da6ec59bd07745d89 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sun, 27 Sep 2026 10:07:45 -0500 Subject: [PATCH] fix(capture): replay retries the first auth connection Co-Authored-By: Claude Opus 5.5 --- dCaptureTool/Replayer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dCaptureTool/Replayer.cpp b/dCaptureTool/Replayer.cpp index 4d36ffd99..0f0fed0a7 100644 --- a/dCaptureTool/Replayer.cpp +++ b/dCaptureTool/Replayer.cpp @@ -161,7 +161,10 @@ namespace { // The recording has no login: log in on the target with the replay's account (not compared) bool Login() { FakeClient client; - if (!client.Connect(m_Options.host, m_Options.authPort, 10s)) { + // Auth can take a moment to take connections after it first answers + bool connected = false; + for (int attempt = 0; attempt < 3 && !connected; attempt++) connected = client.Connect(m_Options.host, m_Options.authPort, 10s); + if (!connected) { Stop("Can't connect to auth at " + m_Options.host + ":" + std::to_string(m_Options.authPort)); return false; }