[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix setStoreChannel(None) - fixes cleanup on destroy.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID aa8943e9b705907ce22dbd9679774bd04257eb8f
# Parent  0f851f965df9a3037949b3eeb60a01a4069ab624
Fix setStoreChannel(None) - fixes cleanup on destroy.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 0f851f965df9 -r aa8943e9b705 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Fri Sep 16 09:16:24 2005
+++ b/tools/python/xen/xend/XendDomainInfo.py   Fri Sep 16 18:05:03 2005
@@ -343,7 +343,11 @@
         if self.store_channel and self.store_channel != channel:
             self.store_channel.close()
         self.store_channel = channel
-        self.storeDom("store/port", channel.port1)
+        if channel:
+            port = channel.port1
+        else:
+            port = None
+        self.storeDom("store/port", None)
 
     def setConsoleRef(self, ref):
         self.console_mfn = ref

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.