Handle case where sender doesn't specify delay

This commit is contained in:
Luc Didry 2016-12-31 07:45:47 +01:00
parent 9d5bb760e5
commit bd0c26dd2d
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ sub upload {
$f = Lufi::File->new(record => $records[0]) if scalar @records;
} else {
my $delay;
unless (defined $json->{delay}) {
$json->{delay} = $c->max_delay;
}
if (defined $c->config('delay_for_size')) {
# Choose delay according to config