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:
parent
e5a199d813
commit
3d48ed389d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue