mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CP-6137: Work in Console tab for vGPU (PR-1675)
# HG changeset patch # User Mihaela Stoica <Mihaela.Stoica@citrix.com> # Date 1384254998 0 # Tue Nov 12 11:16:38 2013 +0000 # Node ID 6b3fc3d7a54e58e92ecfe714d19c8dc26b7a0565 # Parent 2cc90cb50e7ff2566f9d0833ad17735922d3f0c9 - Only close the inactive VNC consoles (not RDP) after an interval Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
c843f5b867
commit
e9b6c0699b
@ -1367,5 +1367,9 @@ namespace XenAdmin.ConsoleView
|
||||
vncScreen.Source.HasGPUPassthrough && vncScreen.Source.power_state == vm_power_state.Running;
|
||||
}
|
||||
|
||||
internal bool IsVNC
|
||||
{
|
||||
get { return vncScreen.UseVNC; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -259,5 +259,10 @@ namespace XenAdmin.ConsoleView
|
||||
{
|
||||
vncTabView.setupCD();
|
||||
}
|
||||
|
||||
internal bool IsVNC
|
||||
{
|
||||
get { return vncTabView.IsVNC; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -316,6 +316,14 @@ namespace XenAdmin.Controls
|
||||
activeVMConsoles.Remove(source);
|
||||
}
|
||||
|
||||
public void closeVNCForSource(VM source, bool vncOnly)
|
||||
{
|
||||
if (!vncViews.ContainsKey(source) || vncViews[source] == null
|
||||
|| (vncOnly && !vncViews[source].IsVNC))
|
||||
return;
|
||||
closeVNCForSource(source);
|
||||
}
|
||||
|
||||
public bool isVNCPausedForSource(VM source)
|
||||
{
|
||||
Program.AssertOnEventThread();
|
||||
@ -445,7 +453,7 @@ namespace XenAdmin.Controls
|
||||
try
|
||||
{
|
||||
log.DebugFormat("ConsolePanel: closeVNCForSource({0}) in delegate", vm.Name);
|
||||
closeVNCForSource(vm);
|
||||
closeVNCForSource(vm, true);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user