Handle introduce_domain failing when the domain is already introduced.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-07-27 18:31:03 +00:00
1 parent 7aa5afeb6c
commit 001ee4ddde
1 file changed
+7 -1
+7 -1
View File
@@ -350,7 +350,13 @@ class XenStore:
self.watchThread = None
def introduceDomain(self, dom, page, evtchn, path):
self.getxs().introduce_domain(dom, page, evtchn.port1, path)
try:
self.getxs().introduce_domain(dom, page, evtchn.port1, path)
except RuntimeError, ex:
if ex.args[0] == errno.EISCONN:
return None
else:
raise
def releaseDomain(self, dom):
self.getxs().release_domain(dom)
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.