From 6f9a9ee255c6d90d98680474a1e5c2df3b79fa70 Mon Sep 17 00:00:00 2001 From: jdevito Date: Fri, 28 Oct 2022 16:47:43 -0500 Subject: [PATCH] fix: moved setting set in event before null check --- .../VideoCodec/ZoomRoom/ZoomRoom.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs b/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs index cc0dfcd7..abf308d9 100644 --- a/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs +++ b/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs @@ -3493,10 +3493,11 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom void OnPasswordRequired(bool lastAttemptIncorrect, bool loginFailed, bool loginCancelled, string message) { + _meetingPasswordRequired = !loginFailed || !loginCancelled; + var handler = PasswordRequired; if (handler != null) - { - _meetingPasswordRequired = !loginFailed || !loginCancelled; + { Debug.Console(2, this, "Meeting Password Required: {0}", _meetingPasswordRequired); handler(this, new PasswordPromptEventArgs(lastAttemptIncorrect, loginFailed, loginCancelled, message));