Suppress errors in download handler Closes #5042

This commit is contained in:
Mike Jolley 2014-03-05 09:30:12 +00:00
parent e557ff5aec
commit 624df4ea14
1 changed files with 2 additions and 2 deletions

View File

@ -319,8 +319,8 @@ class WC_Download_Handler {
while ( ! feof( $handle ) ) {
$buffer = fread( $handle, $chunksize );
echo $buffer;
ob_flush();
flush();
@ob_flush();
@flush();
if ( $retbytes ) {
$cnt += strlen( $buffer );