Fix setStoreChannel(None) - fixes cleanup on destroy.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-16 18:05:03 +00:00
1 parent cac86eced4
commit a3dd96110a
1 file changed
+5 -1
+5 -1
View File
@@ -343,7 +343,11 @@ class XendDomainInfo:
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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.