ia64/xen-unstable
changeset 6912:aa8943e9b705
Fix setStoreChannel(None) - fixes cleanup on destroy.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author | cl349@firebug.cl.cam.ac.uk |
---|---|
date | Fri Sep 16 18:05:03 2005 +0000 (2005-09-16) |
parents | 0f851f965df9 |
children | 7cccdb49af75 |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Fri Sep 16 09:16:24 2005 +0000 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Sep 16 18:05:03 2005 +0000 1.3 @@ -343,7 +343,11 @@ class XendDomainInfo: 1.4 if self.store_channel and self.store_channel != channel: 1.5 self.store_channel.close() 1.6 self.store_channel = channel 1.7 - self.storeDom("store/port", channel.port1) 1.8 + if channel: 1.9 + port = channel.port1 1.10 + else: 1.11 + port = None 1.12 + self.storeDom("store/port", None) 1.13 1.14 def setConsoleRef(self, ref): 1.15 self.console_mfn = ref