This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user