set activity when actually uploading

This commit is contained in:
Mitchell Livingston 2007-05-25 21:38:24 +00:00
parent 85bc8ebc87
commit e5a199d813
1 changed files with 5 additions and 1 deletions

View File

@ -540,7 +540,11 @@ writeBegin:
date = tr_date();
peer->outDate = date;
tor->activityDate = date;
if( tr_peerAmInterested( peer ) && !tr_peerIsChoking( peer ) )
{
tor->activityDate = date;
}
/* In case this block is done, you may have messages
pending. Send them before we start the next block */