SVN: toys/rsget.pl/RSGet/FileList.pm
    sparky 
    sparky at pld-linux.org
       
    Wed Mar 24 02:20:58 CET 2010
    
    
  
Author: sparky
Date: Wed Mar 24 02:20:57 2010
New Revision: 11287
Modified:
   toys/rsget.pl/RSGet/FileList.pm
Log:
- simplified stop_inactive_get list processor
Modified: toys/rsget.pl/RSGet/FileList.pm
==============================================================================
--- toys/rsget.pl/RSGet/FileList.pm	(original)
+++ toys/rsget.pl/RSGet/FileList.pm	Wed Mar 24 02:20:57 2010
@@ -103,15 +103,11 @@
 {
 	return unless $_[0] eq "GET";
 
-	my $active = 0;
 	foreach my $uri ( keys %{$_[2]} ) {
-		if ( exists $RSGet::Dispatch::downloading{ $uri } ) {
-			$active = 1;
-			last;
-		}
+		return if exists $RSGet::Dispatch::downloading{ $uri };
 	}
 
-	$_[0] = "STOP" unless $active;
+	$_[0] = "STOP";
 }
 
 our %processors = (
    
    
More information about the pld-cvs-commit
mailing list