run update hook after setting arrival time

This commit is contained in:
Daniel Friesel 2019-06-01 12:06:22 +02:00
parent d701442306
commit 5f80c151c1

View file

@ -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 );
}