fix: hot reload blocking (#2127)

This commit is contained in:
Miles Murgaw 2024-03-22 17:36:49 -04:00 committed by GitHub
parent e012d816eb
commit acbf7dfc4f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

1
Cargo.lock generated
View file

@ -2221,6 +2221,7 @@ name = "dioxus-fullstack"
version = "0.5.0-alpha.2"
dependencies = [
"anymap",
"async-compression",
"async-trait",
"axum",
"base64",

View file

@ -51,11 +51,11 @@ async fn hotreload_loop(mut socket: WebSocket, state: HotReloadState) -> anyhow:
msg = _rx => msg,
e = _socket => {
if let Some(Err(e)) = e {
log::info!("🔥 Hot Reload WebSocket disconnected: {}", e);
break;
log::info!("🔥 Hot Reload WebSocket Error: {}", e);
} else {
continue;
log::info!("🔥 Hot Reload WebSocket Closed");
}
break;
},
};