mirror of https://github.com/quasar/Quasar.git
Improved Remote Desktop cleanup #298
This commit is contained in:
parent
5ead60e571
commit
cffa366073
|
@ -136,6 +136,14 @@ private void FrmRemoteDesktop_FormClosing(object sender, FormClosingEventArgs e)
|
|||
new Core.Packets.ServerPackets.GetDesktop(0, 0, RemoteDesktopAction.Stop).Execute(_connectClient);
|
||||
if (!picDesktop.IsDisposed && !picDesktop.Disposing)
|
||||
picDesktop.Dispose();
|
||||
lock (ProcessingScreensLock)
|
||||
{
|
||||
ProcessingScreens = false;
|
||||
}
|
||||
lock (ProcessingScreensQueue)
|
||||
{
|
||||
ProcessingScreensQueue.Clear();
|
||||
}
|
||||
if (_connectClient.Value != null)
|
||||
_connectClient.Value.FrmRdp = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue