Explorar o código

Return, next, whatever

Zachary Kotlarek %!s(int64=9) %!d(string=hai) anos
pai
achega
d0196efa5b
Modificáronse 1 ficheiros con 1 adicións e 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'});
 }