mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 07:06:52 +01:00
link fixes
This commit is contained in:
parent
b942d33ec6
commit
9ab03c4fcf
@ -117,7 +117,7 @@ impl Serial {
|
||||
Ok(0) => return Err(Error::new("Unexpected end of serial data")),
|
||||
Ok(bytes) => position += bytes,
|
||||
Err(error) => match error.kind() {
|
||||
ErrorKind::Interrupted | ErrorKind::TimedOut => {
|
||||
ErrorKind::Interrupted | ErrorKind::TimedOut | ErrorKind::WouldBlock => {
|
||||
if !block && position == 0 {
|
||||
return Ok(None);
|
||||
}
|
||||
@ -243,7 +243,7 @@ impl TcpBackend {
|
||||
Ok(0) => return Err(Error::new("Unexpected end of stream data")),
|
||||
Ok(bytes) => position += bytes,
|
||||
Err(error) => match error.kind() {
|
||||
ErrorKind::Interrupted | ErrorKind::TimedOut => {
|
||||
ErrorKind::Interrupted | ErrorKind::TimedOut | ErrorKind::WouldBlock => {
|
||||
if !block && position == 0 {
|
||||
return Ok(None);
|
||||
}
|
||||
@ -618,7 +618,7 @@ fn server_stream_thread(
|
||||
Ok(0) => return Ok(()),
|
||||
Ok(bytes) => header_position += bytes,
|
||||
Err(error) => match error.kind() {
|
||||
ErrorKind::Interrupted | ErrorKind::TimedOut => {}
|
||||
ErrorKind::Interrupted | ErrorKind::TimedOut | ErrorKind::WouldBlock => {}
|
||||
_ => return Err(error.into()),
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user