[svn r411] Fixes the bug that makes a recorded MythTV movie REQUEST_BLOCK message to recurse indefinitely. trunk
authorrosfran
Thu Mar 08 23:42:25 2007 +0000 (2007-03-08)
branchtrunk
changeset 406131040a49e9f
parent 405 aff8c0341462
child 407 710c4cfe5ccd
[svn r411] Fixes the bug that makes a recorded MythTV movie REQUEST_BLOCK message to recurse indefinitely.
gmyth/src/gmyth_file_transfer.c
     1.1 --- a/gmyth/src/gmyth_file_transfer.c	Thu Mar 08 23:41:10 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_file_transfer.c	Thu Mar 08 23:42:25 2007 +0000
     1.3 @@ -654,7 +654,7 @@
     1.4      }
     1.5    } /* while - iterates through bytes until reaches the end of stream */
     1.6  
     1.7 -  if ( bytes_sent == 0 && max_tries == 0 )
     1.8 +  if ( read_unlimited && ( bytes_sent == 0 ) && ( max_tries == 0 ) )
     1.9  	{
    1.10  		gmyth_debug( "Trying to move to the next program chain..." );
    1.11  		transfer->priv = GMYTH_FILE_TRANSFER_GET_PRIVATE(transfer);