1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-23 14:40:43 +00:00

#1302: Uploading file deletion is ignored

This commit is contained in:
Charles Kerr 2008-10-10 03:04:46 +00:00
parent 62580e49d3
commit 7566be5348

View file

@ -1815,9 +1815,14 @@ peerPulse( void * vmsgs )
req.index ) )
{
uint8_t * buf = tr_new( uint8_t, req.length );
if( !tr_ioRead( msgs->torrent, req.index, req.offset,
req.length, buf ) )
const int err = tr_ioRead( msgs->torrent,
req.index, req.offset, req.length,
buf );
if( err )
{
fireError( msgs, err );
}
else
{
tr_peerIo * io = msgs->io;
struct evbuffer * out = msgs->outBlock;