mirror of https://github.com/quasar/Quasar.git
Merge pull request #43 from d3agle/master
Fixed Server crash when closing the Remote Desktop form while it's still running
This commit is contained in:
commit
c61de89cea
|
@ -125,10 +125,16 @@ namespace xServer.Core.Commands
|
|||
Bitmap newScreen = client.Value.StreamCodec.DecodeData(ms);
|
||||
|
||||
client.Value.LastDesktop = newScreen;
|
||||
|
||||
try
|
||||
{
|
||||
client.Value.FrmRdp.Invoke((MethodInvoker)delegate
|
||||
{
|
||||
client.Value.FrmRdp.picDesktop.Image = (Bitmap)newScreen.Clone();
|
||||
});
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
newScreen = null;
|
||||
}
|
||||
}
|
||||
|
@ -147,10 +153,16 @@ namespace xServer.Core.Commands
|
|||
Bitmap newScreen = client.Value.StreamCodec.DecodeData(ms);
|
||||
|
||||
client.Value.LastDesktop = newScreen;
|
||||
|
||||
try
|
||||
{
|
||||
client.Value.FrmRdp.Invoke((MethodInvoker)delegate
|
||||
{
|
||||
client.Value.FrmRdp.picDesktop.Image = (Bitmap)newScreen.Clone();
|
||||
});
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
newScreen = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue