Skip to content

Commit

Permalink
Set local_socket_stream to blocking (default) (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixf4xu authored Dec 3, 2023
1 parent c8a9a7b commit a2ca176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/server/desktop/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ async fn start_desktop_hot_reload(hot_reload_state: HotReloadState) -> Result<()
let file_map = hot_reload_state.file_map.clone();
let channels = channels.clone();
let aborted = aborted.clone();
let _ = local_socket_stream.set_nonblocking(true);
move || {
loop {
//accept() will block the thread when local_socket_stream is in blocking mode (default)
match local_socket_stream.accept() {
Ok(mut connection) => {
// send any templates than have changed before the socket connected
Expand Down

0 comments on commit a2ca176

Please sign in to comment.