mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
fix: hot reload blocking (#2127)
This commit is contained in:
parent
e012d816eb
commit
acbf7dfc4f
2 changed files with 4 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -2221,6 +2221,7 @@ name = "dioxus-fullstack"
|
|||
version = "0.5.0-alpha.2"
|
||||
dependencies = [
|
||||
"anymap",
|
||||
"async-compression",
|
||||
"async-trait",
|
||||
"axum",
|
||||
"base64",
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue