This commit is contained in:
MeexReay 2025-04-29 22:03:43 +03:00
parent c0f077a10e
commit 9fecfadf17

View File

@ -61,12 +61,13 @@ async fn test_data_transfer() -> Result<(), ProtocolError> {
}
tokio::spawn(async { let _ = server_thread().await; });
let conn = MCConnTcp::connect("localhost:44447").await;
while let Err(_) = conn {}
let mut conn = conn?;
let mut conn = loop {
match MCConnTcp::connect("localhost:44447").await {
Ok(i) => break i,
Err(_) => {}
};
};
conn.set_compression(Some(5));