Fix stop() debug (#2660)
This commit is contained in:
parent
de79fc49b0
commit
50f25a9116
|
@ -293,10 +293,12 @@ sub stop {
|
|||
#or $res == PE_FORMEMPTY
|
||||
);
|
||||
my $ret;
|
||||
eval { $ret = $mod->( 'stop', $res ) };
|
||||
if ($@) {
|
||||
$self->logger->debug( 'Trying to call optional stop: ' . $@ );
|
||||
return 0;
|
||||
if ( $mod->( 'can', 'stop' ) ) {
|
||||
eval { $ret = $mod->( 'stop', $res ) };
|
||||
if ($@) {
|
||||
$self->logger->error( 'Optional stop() method failed: ' . $@ );
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue