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 294baf8e5d
commit eae523eb56
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;
}
/**