Explorar el Código

Return, next, whatever

Zachary Kotlarek hace 9 años
padre
commit
d0196efa5b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      transmission.pl

+ 1 - 1
transmission.pl

@@ -609,7 +609,7 @@ sub storeNZB($) {
 	# Process any files we found
 	if (scalar(@files) < 1) {
 		print STDERR 'No media files found in NZB: ' . $nzb->{'name'} . "\n";
-		next;
+		return undef();
 	}
 	return storeFiles($nzb->{'path'}, \@files, $nzb->{'name'});
 }