Skip to content

Commit

Permalink
Merge pull request #11436 from nextcloud/assemblystream-eof-14
Browse files Browse the repository at this point in the history
[14] AssemblyStream is also eof if we have no more source stream
  • Loading branch information
rullzer authored Sep 28, 2018
2 parents 3894e59 + e3dab24 commit 48b48fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Upload/AssemblyStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function stream_flush() {
* @return bool
*/
public function stream_eof() {
return $this->pos >= $this->size;
return $this->pos >= $this->size || $this->currentStream === null;
}

/**
Expand Down

0 comments on commit 48b48fa

Please sign in to comment.