(trunk libT) #2372: 'Unregistered Torrent Pass' Pauses Download

This commit is contained in:
Charles Kerr 2009-08-31 16:41:54 +00:00
parent ed512c215f
commit 23b3faada4
2 changed files with 8 additions and 1 deletions

View File

@ -2607,7 +2607,7 @@ bandwidthPulse( void * vmgr )
/* possibly stop torrents that have an error */
tor = NULL;
while(( tor = tr_torrentNext( mgr->session, tor )))
if( tor->isRunning && (( tor->error == TR_STAT_TRACKER_ERROR ) || ( tor->error == TR_STAT_LOCAL_ERROR )))
if( tor->isRunning && ( tor->error == TR_STAT_LOCAL_ERROR ))
tr_torrentStop( tor );
managerUnlock( mgr );

View File

@ -1368,9 +1368,16 @@ enum
typedef enum
{
/* everything's fine */
TR_STAT_OK = 0,
/* when we anounced to the tracker, we got a warning in the response */
TR_STAT_TRACKER_WARNING = 1,
/* when we anounced to the tracker, we got an error in the response */
TR_STAT_TRACKER_ERROR = 2,
/* local trouble, such as disk full or permissions error */
TR_STAT_LOCAL_ERROR = 3
}
tr_stat_errtype;