(trunk) #1869 "new status for torrents that reached the seed ratio" -- add temporary debug messages to help track down the issue leena's reporting in that ticket
This commit is contained in:
parent
8f0487b9d3
commit
1a7bcbbea2
|
@ -324,6 +324,8 @@ tr_torrentCheckSeedRatio( tr_torrent * tor )
|
|||
/* if we're seeding and we've reached our seed ratio limit, stop the torrent */
|
||||
if( tor->isRunning && tr_torrentIsSeedRatioDone( tor ) )
|
||||
{
|
||||
tr_torinf( tor, "Seed ratio reached; pausing torrent" );
|
||||
|
||||
tr_torrentStop( tor );
|
||||
|
||||
/* maybe notify the client */
|
||||
|
@ -1428,7 +1430,10 @@ torrentStart( tr_torrent * tor )
|
|||
{
|
||||
/* allow finished torrents to be resumed */
|
||||
if( tr_torrentIsSeedRatioDone( tor ) )
|
||||
{
|
||||
tr_torinf( tor, "Restarted manually -- disabling its seed ratio" );
|
||||
tr_torrentSetRatioMode( tor, TR_RATIOLIMIT_UNLIMITED );
|
||||
}
|
||||
|
||||
tr_verifyRemove( tor );
|
||||
|
||||
|
@ -1533,6 +1538,7 @@ static void
|
|||
stopTorrent( void * vtor )
|
||||
{
|
||||
tr_torrent * tor = vtor;
|
||||
tr_torinf( tor, "Pausing" );
|
||||
|
||||
assert( tr_isTorrent( tor ) );
|
||||
|
||||
|
|
|
@ -1284,7 +1284,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
//iterate through instead of all at once to ensure no conflicts
|
||||
for (Torrent * torrent in torrents)
|
||||
{
|
||||
tr_inf( "restarting a torrent in resumeTorrentsNoWait" );
|
||||
[torrent startTransfer];
|
||||
}
|
||||
|
||||
[self updateUI];
|
||||
[self applyFilter: nil];
|
||||
|
@ -1823,6 +1826,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
if (desiredDownloadActive > 0)
|
||||
{
|
||||
tr_inf( "restarting download torrent in mac queue" );
|
||||
[torrent startTransfer];
|
||||
if ([torrent isActive])
|
||||
--desiredDownloadActive;
|
||||
|
@ -1833,6 +1837,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
{
|
||||
if (desiredSeedActive > 0)
|
||||
{
|
||||
tr_inf( "restarting seed torrent in mac queue" );
|
||||
[torrent startTransfer];
|
||||
if ([torrent isActive])
|
||||
--desiredSeedActive;
|
||||
|
|
|
@ -286,6 +286,7 @@ int trashDataFile(const char * filename)
|
|||
|
||||
if (![self isActive] && [self alertForRemainingDiskSpace])
|
||||
{
|
||||
tr_torinf( fHandle, "restarting via startTransfer" );
|
||||
tr_torrentStart(fHandle);
|
||||
[self update];
|
||||
|
||||
|
@ -316,7 +317,10 @@ int trashDataFile(const char * filename)
|
|||
- (void) wakeUp
|
||||
{
|
||||
if (fResumeOnWake)
|
||||
{
|
||||
tr_torinf( fHandle, "restarting because of wakeUp" );
|
||||
tr_torrentStart(fHandle);
|
||||
}
|
||||
}
|
||||
|
||||
- (void) manualAnnounce
|
||||
|
|
Loading…
Reference in New Issue