No more display stop() errors

This commit is contained in:
Yadd 2022-02-02 11:32:56 +01:00
parent 50f25a9116
commit 0df2d6dd30
1 changed files with 5 additions and 6 deletions

View File

@ -293,12 +293,11 @@ sub stop {
#or $res == PE_FORMEMPTY
);
my $ret;
if ( $mod->( 'can', 'stop' ) ) {
eval { $ret = $mod->( 'stop', $res ) };
if ($@) {
$self->logger->error( 'Optional stop() method failed: ' . $@ );
return 0;
}
eval { $ret = $mod->( 'stop', $res ) };
if ($@) {
#$self->logger->error( 'Optional stop() method failed: ' . $@ );
return 0;
}
return $ret;
}