From a8068a95d0ddce6742585908e7389604ee6d3bb7 Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Sun, 12 Jul 2026 16:51:09 +0300 Subject: [PATCH] fix(lceonline): windows workaround --- src-tauri/src/networking/relay.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-tauri/src/networking/relay.rs b/src-tauri/src/networking/relay.rs index a53d6e7..2997e99 100644 --- a/src-tauri/src/networking/relay.rs +++ b/src-tauri/src/networking/relay.rs @@ -1,6 +1,8 @@ use tauri::State; +use tauri::webview::cookie::time::Duration; use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio::net::{TcpListener, TcpStream}; +use tokio::time::sleep; use tokio_util::sync::CancellationToken; use crate::state::ProxyGuard; const PROXY_ADDR: &str = "proxy.mclegacyedition.xyz:2052"; //neo: yeah bro im hardcoding it @@ -249,5 +251,6 @@ pub async fn join_game( ip: host_ip, port: host_port, }; + #[cfg(target_os = "windows")] sleep(tokio::time::Duration::from_millis(30000)).await; //neo: workaround for Windows having a race condition where the game is launched before the relay proxy crate::commands::game::launch_game(app, game_state, instance_id, vec![server], vec![]).await }