Increase delay to give more time before deletion
This commit is contained in:
parent
c62109d263
commit
05d692d936
|
@ -357,7 +357,7 @@ sub run
|
||||||
if ($self->{crop}) {
|
if ($self->{crop}) {
|
||||||
$self->do_log('LOG_DEBUG', "Deleting $cropped");
|
$self->do_log('LOG_DEBUG', "Deleting $cropped");
|
||||||
# Give swaybg a second, otherwise the file will be missing before it ends
|
# Give swaybg a second, otherwise the file will be missing before it ends
|
||||||
sleep(1);
|
sleep(2);
|
||||||
unlink($cropped) || $self->do_log("LOG_WARNING", "Failed to delete $cropped after setting: $!");
|
unlink($cropped) || $self->do_log("LOG_WARNING", "Failed to delete $cropped after setting: $!");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue