diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-19 22:24:35 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-19 22:24:35 +0000 |
| commit | d60fd90a6e13c727a05b629c8c4b93d4bf3b717b (patch) | |
| tree | 03d2845cbde34ca26ff1bc04ca8c89d4b33c4636 | |
| parent | 7c3f9fd51051330c8fc58c298b907222d734fa31 (diff) | |
Let's not accept EAGAIN until we're sure it's possible.
| -rw-r--r-- | src/lib/file_group.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc index e18b9824e..942eb435d 100644 --- a/src/lib/file_group.cc +++ b/src/lib/file_group.cc @@ -162,7 +162,7 @@ FileGroup::read (uint8_t* buffer, int amount) const break; } - if (ferror(_current_file) && errno != EAGAIN) { + if (ferror(_current_file)) { throw FileError (String::compose("fread error %1", errno), _paths[_current_path]); } |
