Commit f355a8d9 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

disappearing trains are no longer critical with the latest change

parent ac3abd5c
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -84,17 +84,11 @@ sub run {
				  = first { $_->train_id eq $train_id } @{ $status->{results} };

				if ( not $train ) {
					if ( $entry->{real_arr_ts} ) {
						die(
"could not find train $train_id at $arr -- did it disappear?\n"
						);
					}
					else {

					# If we haven't seen the train yet, its arrival is probably
					# too far in the future. This is not critical.
					return;
				}
				}

				$db->update(
					'in_transit',