1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 04:53:27 +00:00

(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 */ /* possibly stop torrents that have an error */
tor = NULL; tor = NULL;
while(( tor = tr_torrentNext( mgr->session, tor ))) 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 ); tr_torrentStop( tor );
managerUnlock( mgr ); managerUnlock( mgr );

View file

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