CP-9365: XenCenter work for HVM linux support

-Unsubscribing from guest_metrics changed event in UnregisterEventListeners()
This commit is contained in:
Gabor Apati-Nagy 2014-09-08 12:04:57 +01:00
parent c928fd71ec
commit 6d652ac135

View File

@ -253,6 +253,9 @@ namespace XenAdmin.ConsoleView
source.PropertyChanged -= new PropertyChangedEventHandler(Server_PropertyChanged);
source.Connection.Cache.DeregisterCollectionChanged<VM>(VM_CollectionChangedWithInvoke);
if (this.guestMetrics != null)
this.guestMetrics.PropertyChanged -= guestMetrics_PropertyChanged;
if (source.is_control_domain)
{
Host host = source.Connection.Resolve<Host>(source.resident_on);