This commit is contained in:
A Cœur 2022-10-07 23:21:01 +08:00 committed by GitHub
parent 3aff760b53
commit 5ba2186f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -863,8 +863,8 @@ bool trashDataFile(char const* filename, tr_error** error)
- (BOOL)isActive
{
return self.fStat->peersSendingToUs > 0 || self.fStat->peersGettingFromUs > 0 || self.fStat->webseedsSendingToUs > 0 ||
self.fStat->activity == TR_STATUS_CHECK;
return self.fStat->activity != TR_STATUS_STOPPED && self.fStat->activity != TR_STATUS_DOWNLOAD_WAIT &&
self.fStat->activity != TR_STATUS_SEED_WAIT;
}
- (BOOL)isSeeding