1
0
Fork 0
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:
Charles Kerr 2007-10-09 05:51:20 +00:00
parent 602ee120af
commit e8d19c5b03

View file

@ -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 );