mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +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
|
||||
);
|
||||
|
||||
stream.write(response.as_bytes()).unwrap();
|
||||
stream.flush().unwrap();
|
||||
stream.write(response.as_bytes()).ok();
|
||||
stream.flush().ok();
|
||||
}
|
||||
|
||||
pub struct ThreadPool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue