Fixed bug

The webcam on the client side was not turning off if the window 'Remote
Webcam' was closed.
This commit is contained in:
Darius Costolas 2016-06-13 23:23:40 +03:00
parent f8908193a9
commit 02a6233863
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ namespace xServer.Forms
private void FrmRemoteWebcam_FormClosing(object sender, FormClosingEventArgs e)
{
new Core.Packets.ServerPackets.DoWebcamStop().Execute(_connectClient);
if (_connectClient.Value != null)
_connectClient.Value.FrmWebcam = null;
}