From 2cf85576e935e3667ce54c7d263105ec43cc8dec Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 29 Apr 2015 17:39:07 +0200 Subject: set a timeout --- index.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.pl b/index.pl index e3d383d..23ccef4 100644 --- a/index.pl +++ b/index.pl @@ -68,7 +68,8 @@ sub get_results { else { $status = Travel::Status::DE::VRR->new( place => $city, - name => $stop + name => $stop, + timeout => 3, ); } $results = [ [ $status->results ], $status->errstr ]; -- cgit v1.2.3