From 63b72aa0cb79094d13f15f98e583e5644e04c65d Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sat, 14 Dec 2019 19:04:04 +0300 Subject: [PATCH] Update FormWebcam.cs --- AsyncRAT-C#/Server/Forms/FormWebcam.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AsyncRAT-C#/Server/Forms/FormWebcam.cs b/AsyncRAT-C#/Server/Forms/FormWebcam.cs index 1154a69..3af68b2 100644 --- a/AsyncRAT-C#/Server/Forms/FormWebcam.cs +++ b/AsyncRAT-C#/Server/Forms/FormWebcam.cs @@ -24,9 +24,9 @@ namespace Server.Forms public string FullPath { get; set; } public Stopwatch sw = Stopwatch.StartNew(); - public Stopwatch RenderSW = Stopwatch.StartNew(); public int FPS = 0; public bool SaveIt = false; + public Image GetImage { get; set; } public FormWebcam() { InitializeComponent(); @@ -81,7 +81,10 @@ namespace Server.Forms { try { - Client?.Disconnected(); + ThreadPool.QueueUserWorkItem((o) => + { + Client?.Disconnected(); + }); } catch { } }