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
This commit is contained in:
d3agle 2015-07-31 08:28:23 -05:00
parent 328200ad09
commit 9f91971009
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}