AssemblyStream is also eof if we have no more source stream

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-09-28 14:39:23 +02:00
parent 3894e59e9c
commit e3dab24a2a
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class AssemblyStream implements \Icewind\Streams\File {
* @return bool
*/
public function stream_eof() {
return $this->pos >= $this->size;
return $this->pos >= $this->size || $this->currentStream === null;
}
/**