Skip image checking capturing==Ondemand

This commit is contained in:
Isaac Connor 2021-10-25 16:52:20 -04:00
parent 72d2b99ca4
commit 509cecf9f5
1 changed files with 6 additions and 4 deletions

View File

@ -99,6 +99,8 @@ while (!$zm_terminate) {
my $now = time();
my $restart = 0;
if (zmMemVerify($monitor)) {
next if $monitor->{Capturing} eq 'Ondemand';
# Check we have got an image recently
my $capture_time = zmGetLastWriteTime($monitor);
if (!defined($capture_time)) {