mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
don't die if the stream hangs up on the server
This commit is contained in:
parent
205f0a3be3
commit
86d9fd1aad
1 changed files with 2 additions and 2 deletions
|
|
@ -652,8 +652,8 @@ fn handle_connection(mut stream: TcpStream, boot_instant: Instant) {
|
||||||
contents
|
contents
|
||||||
);
|
);
|
||||||
|
|
||||||
stream.write(response.as_bytes()).unwrap();
|
stream.write(response.as_bytes()).ok();
|
||||||
stream.flush().unwrap();
|
stream.flush().ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ThreadPool {
|
pub struct ThreadPool {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue