From 23b3faada4ff5b90aa6b9fe3c33d889eeb17e4be Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 31 Aug 2009 16:41:54 +0000 Subject: [PATCH] (trunk libT) #2372: 'Unregistered Torrent Pass' Pauses Download --- libtransmission/peer-mgr.c | 2 +- libtransmission/transmission.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index c551945a7..ea03b611e 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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 ); diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h index cfa6e7e0a..f97992fc8 100644 --- a/libtransmission/transmission.h +++ b/libtransmission/transmission.h @@ -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;