when asking to quit, don't consider stalled transfers active

This commit is contained in:
Mitchell Livingston 2007-12-31 18:37:34 +00:00
parent c931736157
commit e5af776a87
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
Torrent * torrent;
NSEnumerator * enumerator = [fTorrents objectEnumerator];
while ((torrent = [enumerator nextObject]))
if ([torrent isActive])
if ([torrent isActive] && ![torrent isStalled])
{
active++;
if (![torrent allDownloaded])