diff --git a/Server/Services/RcImplementations/HubEventHandler.cs b/Server/Services/RcImplementations/HubEventHandler.cs index 499cdcd32..588c40da3 100644 --- a/Server/Services/RcImplementations/HubEventHandler.cs +++ b/Server/Services/RcImplementations/HubEventHandler.cs @@ -97,6 +97,12 @@ public Task NotifySessionChanged(RemoteControlSession session, SessionSwitchReas return Task.CompletedTask; } + if (ex.RequireConsent) + { + // Don't restart if consent wasn't granted on the first request. + return Task.CompletedTask; + } + _logger.LogDebug("Windows session changed during remote control. " + "Reason: {reason}. " + "Current Session ID: {sessionId}. " + @@ -126,6 +132,12 @@ public Task RestartScreenCaster(RemoteControlSession session, HashSet vi return Task.CompletedTask; } + if (ex.RequireConsent) + { + // Don't restart if consent wasn't granted on the first request. + return Task.CompletedTask; + } + return _serviceHub.Clients .Client(ex.AgentConnectionId) .RestartScreenCaster( diff --git a/submodules/Immense.RemoteControl b/submodules/Immense.RemoteControl index 52e237dcc..ab9f9604b 160000 --- a/submodules/Immense.RemoteControl +++ b/submodules/Immense.RemoteControl @@ -1 +1 @@ -Subproject commit 52e237dcc48717ceb31b8f9fddaab46c68c50074 +Subproject commit ab9f9604be3d9ece45de0810e4826fe28ac5a932