Update FormRemoteDesktop.cs
This commit is contained in:
parent
e36c2035e1
commit
9a9249ca3b
@ -34,6 +34,7 @@ namespace Server.Forms
|
|||||||
private bool isKeyboard = false;
|
private bool isKeyboard = false;
|
||||||
public object syncPicbox = new object();
|
public object syncPicbox = new object();
|
||||||
private readonly List<Keys> _keysPressed;
|
private readonly List<Keys> _keysPressed;
|
||||||
|
public Image GetImage { get; set; }
|
||||||
public FormRemoteDesktop()
|
public FormRemoteDesktop()
|
||||||
{
|
{
|
||||||
_keysPressed = new List<Keys>();
|
_keysPressed = new List<Keys>();
|
||||||
@ -262,6 +263,7 @@ namespace Server.Forms
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
GetImage?.Dispose();
|
||||||
ThreadPool.QueueUserWorkItem((o) =>
|
ThreadPool.QueueUserWorkItem((o) =>
|
||||||
{
|
{
|
||||||
Client?.Disconnected();
|
Client?.Disconnected();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user