Update FormWebcam.cs

This commit is contained in:
NYAN CAT 2019-12-14 19:04:04 +03:00
parent 9a9249ca3b
commit 63b72aa0cb

View File

@ -24,9 +24,9 @@ namespace Server.Forms
public string FullPath { get; set; } public string FullPath { get; set; }
public Stopwatch sw = Stopwatch.StartNew(); public Stopwatch sw = Stopwatch.StartNew();
public Stopwatch RenderSW = Stopwatch.StartNew();
public int FPS = 0; public int FPS = 0;
public bool SaveIt = false; public bool SaveIt = false;
public Image GetImage { get; set; }
public FormWebcam() public FormWebcam()
{ {
InitializeComponent(); InitializeComponent();
@ -80,8 +80,11 @@ namespace Server.Forms
private void FormWebcam_FormClosed(object sender, FormClosedEventArgs e) private void FormWebcam_FormClosed(object sender, FormClosedEventArgs e)
{ {
try try
{
ThreadPool.QueueUserWorkItem((o) =>
{ {
Client?.Disconnected(); Client?.Disconnected();
});
} }
catch { } catch { }
} }