define as activity as when uploading/downloading occurs

This commit is contained in:
Mitchell Livingston 2007-05-25 21:20:54 +00:00
parent 0397fbd6dd
commit 5441c5e145
1 changed files with 5 additions and 1 deletions

View File

@ -336,7 +336,11 @@ int tr_peerRead( tr_peer_t * peer )
{ {
tr_rcTransferred( tor->handle->download, ret ); tr_rcTransferred( tor->handle->download, ret );
} }
if( !tr_peerAmChoking( peer ) )
{
tor->activityDate = date; tor->activityDate = date;
}
if( ( ret = parseBuf( tor, peer ) ) ) if( ( ret = parseBuf( tor, peer ) ) )
{ {