add setLastViewed for monitors that have clients

This commit is contained in:
Isaac Connor 2021-10-24 17:45:22 -04:00
parent 3d2615d66f
commit df1b42ab53
1 changed files with 4 additions and 0 deletions

View File

@ -306,6 +306,10 @@ int main(int argc, char *argv[]) {
} }
audio_sources[monitor->Id()] = audioSource; audio_sources[monitor->Id()] = audioSource;
} // end if ! sessions[monitor->Id()] } // end if ! sessions[monitor->Id()]
if (sessions[monitor->Id()]->GetNumClient() > 0) {
SystemTimePoint now = std::chrono::system_clock::now();
monitor->setLastViewed(now);
}
} // end foreach monitor } // end foreach monitor
sleep(10); sleep(10);