diff --git a/src/oud2_parser.pl b/src/oud2_parser.pl index 947056b52e9b63eb7ac4393f732e91dee51e6183..cb39b81b98577d3f1af8f39bff6576c0a9537b25 100644 --- a/src/oud2_parser.pl +++ b/src/oud2_parser.pl @@ -300,11 +300,15 @@ foreach my $frame (values %{ $master{'rosen'} }) my $old_ref = MasterUtils::sta_from_id \%master, $old; if ($old_ref->{'ekimei'} eq $ekimei) { - Log::i "Found $ekimei in the existing index (first found in " . $old_ref->{'found_in'} . ')'; + Log::i "Found $ekimei in the existing index (first found in " . $old_ref->{'found_in'} . " with id $old)"; Log::i "Assuming this is the same station as the one processed earlier."; + push @new_ekis, $old; + $restart = 1; last; } } + + if ($restart) { next; } my $id = $frame->{'id'} . "_$index"; print "Adding station $ekimei to master frame with id $id\n";