Skip to content

Commit

Permalink
Merge pull request #30 from bbqsrc/patch/error-no-data
Browse files Browse the repository at this point in the history
Add missing ERROR_NO_DATA handling to NamedPipe
  • Loading branch information
yoshuawuyts committed May 20, 2020
2 parents 9fc0a2f + 8ea4e0b commit 4cc010b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pipe.rs
Expand Up @@ -266,6 +266,7 @@ impl NamedPipe {
Ok(_) => Ok(true),
Err(ref e) if e.raw_os_error() == Some(ERROR_PIPE_CONNECTED as i32) => Ok(true),
Err(ref e) if e.raw_os_error() == Some(ERROR_IO_PENDING as i32) => Ok(false),
Err(ref e) if e.raw_os_error() == Some(ERROR_NO_DATA as i32) => Ok(true),
Err(e) => Err(e),
}
}
Expand Down

0 comments on commit 4cc010b

Please sign in to comment.