hotfix: finding hotreload path fails when not running under cargo

This commit is contained in:
Jonathan Kelley committed 2024-03-20 09:54:57 -07:00
1 parent e923c6462c
commit 6c9f991f0b
3 files changed
+20 -5

No files matched your search

+8 -1
View File
@@ -49,7 +49,14 @@ async fn hotreload_loop(mut socket: WebSocket, state: HotReloadState) -> anyhow:
let msg = futures_util::select! {
msg = _rx => msg,
_ = _socket => break,
e = _socket => {
if let Some(Err(e)) = e {
log::info!("🔥 Hot Reload WebSocket disconnected: {}", e);
break;
} else {
continue;
}
},
};
let Ok(msg) = msg else { break };