Update FormWebcam.cs
This commit is contained in:
parent
9a9249ca3b
commit
63b72aa0cb
@ -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();
|
||||||
@ -81,7 +81,10 @@ namespace Server.Forms
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Client?.Disconnected();
|
ThreadPool.QueueUserWorkItem((o) =>
|
||||||
|
{
|
||||||
|
Client?.Disconnected();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user