summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.pl b/index.pl
index ad17284..55a0017 100644
--- a/index.pl
+++ b/index.pl
@@ -253,9 +253,11 @@ sub handle_request {
destination => $result->destination,
platform => $platform,
info => $info,
- is_cancelled => $result->is_cancelled,
- moreinfo => $moreinfo,
- delay => $delay,
+ is_cancelled => $result->can('is_canceled')
+ ? $result->is_cancelled
+ : undef,
+ moreinfo => $moreinfo,
+ delay => $delay,
}
);
}