Update Clients.cs
This commit is contained in:
parent
9c14cd1804
commit
55e0a49dff
@ -11,6 +11,7 @@ using AsyncRAT_Sharp.MessagePack;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Net.Security;
|
using System.Net.Security;
|
||||||
using System.Security.Authentication;
|
using System.Security.Authentication;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace AsyncRAT_Sharp.Sockets
|
namespace AsyncRAT_Sharp.Sockets
|
||||||
{
|
{
|
||||||
@ -115,20 +116,21 @@ namespace AsyncRAT_Sharp.Sockets
|
|||||||
|
|
||||||
public void Disconnected()
|
public void Disconnected()
|
||||||
{
|
{
|
||||||
try
|
if (LV != null)
|
||||||
{
|
{
|
||||||
if (LV != null)
|
if (Program.form1.listView1.InvokeRequired)
|
||||||
{
|
Program.form1.listView1.BeginInvoke((MethodInvoker)(() =>
|
||||||
if (Program.form1.listView1.InvokeRequired)
|
{
|
||||||
Program.form1.listView1.BeginInvoke((MethodInvoker)(() =>
|
try
|
||||||
{
|
{
|
||||||
LV.Remove();
|
lock (Settings.Listview1Lock)
|
||||||
}));
|
LV.Remove();
|
||||||
lock (Settings.Online)
|
}
|
||||||
Settings.Online.Remove(this);
|
catch { }
|
||||||
}
|
}));
|
||||||
|
lock (Settings.Online)
|
||||||
|
Settings.Online.Remove(this);
|
||||||
}
|
}
|
||||||
catch { }
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user