From 5f80c151c178fcf09331618ac4ee8ef8e050d007 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 1 Jun 2019 12:06:22 +0200 Subject: [PATCH] run update hook after setting arrival time --- lib/Travelynx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 7b87b99..e4dc5b4 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -568,7 +568,6 @@ sub startup { } if ( not( defined $train or $force ) ) { - $self->run_hook( $uid, 'update' ); # Arrival time via IRIS is unknown, try falling back to HAFAS if ( my $station_data @@ -594,6 +593,7 @@ sub startup { ); } } + $self->run_hook( $uid, 'update' ); return ( 1, undef ); }