1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 14:13:23 +00:00

swap download and upload activity checks

This commit is contained in:
Mitchell Livingston 2007-05-25 21:44:26 +00:00
parent e5a199d813
commit 3d48ed389d

View file

@ -337,7 +337,7 @@ int tr_peerRead( tr_peer_t * peer )
tr_rcTransferred( tor->handle->download, ret );
}
if( !tr_peerAmChoking( peer ) )
if( tr_peerAmInterested( peer ) && !tr_peerIsChoking( peer ) )
{
tor->activityDate = date;
}
@ -541,7 +541,7 @@ writeBegin:
date = tr_date();
peer->outDate = date;
if( tr_peerAmInterested( peer ) && !tr_peerIsChoking( peer ) )
if( !tr_peerAmChoking( peer ) )
{
tor->activityDate = date;
}