diff options
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index fc59b68..48fa944 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -621,6 +621,14 @@ sub travel_action { if ( $params->{action} eq 'checkin' ) { + my $status = $self->get_user_status; + if ( $status->{checked_in} + and $status->{arr_eva} + and $status->{arrival_countdown} <= 0 ) + { + $self->checkout( station => $status->{arr_eva} ); + } + $self->render_later; $self->checkin_p( station => $params->{station}, |