tryfix: reconnect to league client
record-daemon / Build, check and test (push) Failing after 7s

This commit is contained in:
2026-06-05 21:17:15 +02:00
parent 1c1b9c4d1a
commit 384ccda515
2 changed files with 34 additions and 12 deletions
+4 -4
View File
@@ -242,9 +242,9 @@ impl Daemon {
}
None => {
// No change in lockfile status
// Check if we need to reconnect (lockfile exists but not connected)
if watcher.credentials().is_some() && !self.lqp_client.is_connected().await {
debug!("Lockfile exists but not connected, attempting reconnect...");
// Check if we need to reconnect (lockfile exists but WebSocket not connected)
if watcher.credentials().is_some() && !self.lqp_client.is_ws_connected().await {
info!("Lockfile exists but WebSocket not connected, attempting reconnect...");
if let Some(creds) = watcher.credentials() {
match self.lqp_client.connect(creds.clone()).await {
Ok(()) => {
@@ -261,7 +261,7 @@ impl Daemon {
}
}
Err(e) => {
debug!("Reconnect attempt failed: {}", e);
info!("Reconnect attempt failed: {}", e);
// Will retry on next check
}
}