Let's not accept EAGAIN until we're sure it's possible.
authorCarl Hetherington <cth@carlh.net>
Wed, 19 Dec 2018 22:24:35 +0000 (22:24 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Dec 2018 22:24:35 +0000 (22:24 +0000)
src/lib/file_group.cc

index e18b9824e27181543ab271546ac6853d985f90a9..942eb435d87f081e38ef5e48bf53ea0e4dd3cdea 100644 (file)
@@ -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]);
                }