From 9f9197100943cd2b2f9c8ca3156a1d533f8fc247 Mon Sep 17 00:00:00 2001 From: d3agle Date: Fri, 31 Jul 2015 08:28:23 -0500 Subject: [PATCH] Remote Desktop form bug fix If a client unexpectedly disconnects from the server while rdp is running, `client.Value` can be nulled before the `SurveillanceHandler` reaches this check --- Server/Core/Commands/SurveillanceHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Core/Commands/SurveillanceHandler.cs b/Server/Core/Commands/SurveillanceHandler.cs index 81fd7668..58d0a737 100644 --- a/Server/Core/Commands/SurveillanceHandler.cs +++ b/Server/Core/Commands/SurveillanceHandler.cs @@ -38,7 +38,7 @@ public static void HandleGetDesktopResponse(Client client, GetDesktopResponse pa packet.Image = null; - if (client.Value.FrmRdp != null && client.Value.FrmRdp.IsStarted) + if (client.Value != null && client.Value.FrmRdp != null && client.Value.FrmRdp.IsStarted) new GetDesktop(packet.Quality, packet.Monitor).Execute(client); }