1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 22:20:39 +00:00

hopefully stop an infinite loop when hitting the stop ratio

This commit is contained in:
Mitchell Livingston 2007-12-19 22:34:59 +00:00
parent 3ccb0a7232
commit 9fe3c396f9

View file

@ -227,13 +227,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
float stopRatio;
if ([self isSeeding] && (stopRatio = [self actualStopRatio]) != INVALID && [self ratio] >= stopRatio)
{
[self setRatioSetting: NSOffState];
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
[self stopTransfer];
fStat = tr_torrentStat(fHandle);
fFinishedSeeding = YES;
[self setRatioSetting: NSOffState];
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStoppedForRatio" object: self];
}
//check if checking data