more debug

pull/2090/head^2
Isaac Connor 2018-04-25 10:33:42 -07:00
parent dd6683f0be
commit f2073c958f
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ sub check_for_processes_to_kill {
foreach my $command ( %terminating_processes ) {
my $process = $cmd_hash{$command};
Debug("Have process $command at pid $$process{pid} $$process{term_sent_at}");
if ( $$process{term_sent_at} - time > KILL_DELAY ) {
if ( $$process{term_sent_at} and ( $$process{term_sent_at} - time > KILL_DELAY ) ) {
dPrint(ZoneMinder::Logger::WARNING, "'$$process{command}' has not stopped at "
.strftime('%y/%m/%d %H:%M:%S', localtime())
.' after ' . KILL_DELAY . ' seconds.'