fix: add logic to prevent vacancy from triggering room off if room is in

a call
This commit is contained in:
Andrew Welker
2022-11-21 10:28:08 -07:00
parent f262c1a3bb
commit 1b43fba37e
2 changed files with 32 additions and 2 deletions

View File

@@ -745,6 +745,24 @@ namespace PepperDash.Essentials
{
//Implement this
}
protected override bool AllowVacancyTimerToStart()
{
bool allowVideo = true;
bool allowAudio = true;
if (VideoCodec != null)
{
allowVideo = !VideoCodec.IsInCall;
}
if (AudioCodec != null)
{
allowAudio = !AudioCodec.IsInCall;
}
return allowVideo && allowAudio;
}
/// <summary>
/// Does what it says