mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix stupid bug from yesterday that made uploading difficult.
This commit is contained in:
parent
602ee120af
commit
e8d19c5b03
1 changed files with 1 additions and 2 deletions
|
@ -272,7 +272,6 @@ fireNeedReq( tr_peermsgs * msgs )
|
|||
{
|
||||
tr_peermsgs_event e = blankEvent;
|
||||
e.eventType = TR_PEERMSG_NEED_REQ;
|
||||
dbgmsg( msgs, "firing NEED_REQ" );
|
||||
publish( msgs, &e );
|
||||
}
|
||||
|
||||
|
@ -1405,7 +1404,7 @@ pulse( void * vmsgs )
|
|||
uint8_t * buf = tr_new( uint8_t, r->length );
|
||||
|
||||
if( requestIsValid( msgs, r )
|
||||
&& tr_bitfieldHas( msgs->info->have, r->index )
|
||||
&& tr_cpPieceIsComplete( msgs->torrent->completion, r->index )
|
||||
&& !tr_ioRead( msgs->torrent, r->index, r->offset, r->length, buf ) )
|
||||
{
|
||||
protocolSendPiece( msgs, r, buf );
|
||||
|
|
Loading…
Reference in a new issue