summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-04-29 17:39:07 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-04-29 17:39:07 +0200
commit2cf85576e935e3667ce54c7d263105ec43cc8dec (patch)
treea046e6411df75109d39ac4da6f6324a568aee7d3
parentc5d3da4b222c1ae125e9e74db6276098bb414bea (diff)
set a timeout
-rw-r--r--index.pl3
1 files changed, 2 insertions, 1 deletions
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 ];