An Outdated server no longer kills the client's connection loop for good
Browse files at this commit4d140bac2d12347e9fc912fb8aebba85abcb5250Parent: 5406fd6- fix
- an Outdated server no longer kills the client's connection loop for good
- it keeps retrying with the normal backoff, so restarting or updating the server lets you log in without restarting the client
1 changed file +0 -8
crates/client/src/net/link.rsmodified+0 -8
| @@ -459,14 +459,6 @@ async fn actor( | |||
| 459 | } | 459 | } |
| 460 | match result { | 460 | match result { |
| 461 | Ok(connection) => break connection, | 461 | Ok(connection) => break connection, |
| 462 | - Err(LinkError::Outdated) => { | ||
| 463 | - warn!("server speaks another protocol version"); | ||
| 464 | - let _ = event_sender | ||
| 465 | - .send(NetworkEvent::Disconnected(LinkError::Outdated)) | ||
| 466 | - .await; | ||
| 467 | - while command_receiver.recv().await.is_some() {} | ||
| 468 | - return; | ||
| 469 | - } | ||
| 470 | Err(error) => { | 462 | Err(error) => { |
| 471 | warn!("connect failed: {error}"); | 463 | warn!("connect failed: {error}"); |
| 472 | 464 | ||