Skip to content

Commit 8508f36

Browse files
authored
fix(examples): Fix autoreload example (#798) (#818)
1 parent debcafe commit 8508f36

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/src/autoreload/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
3636

3737
match listenfd::ListenFd::from_env().take_tcp_listener(0)? {
3838
Some(listener) => {
39+
listener.set_nonblocking(true)?;
3940
let listener = tokio_stream::wrappers::TcpListenerStream::new(
4041
tokio::net::TcpListener::from_std(listener)?,
4142
);

0 commit comments

Comments
 (0)