fix: hot reload blocking (#2127)

This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-03-22 14:36:49 -07:00
1 parent e012d816eb
commit acbf7dfc4f
2 files changed
+4 -3

No files matched your search

Generated
+1
View File
@@ -2221,6 +2221,7 @@ name = "dioxus-fullstack"
version = "0.5.0-alpha.2"
dependencies = [
"anymap",
"async-compression",
"async-trait",
"axum",
"base64",
+3 -3
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;
},
};