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:
parent
62580e49d3
commit
7566be5348
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue