Przeglądaj źródła

Return, next, whatever

Zachary Kotlarek 9 lat temu
rodzic
commit
d0196efa5b
1 zmienionych plików z 1 dodań i 1 usunięć
  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'});
 }