Browse Source

app: do not wrap libvirt_conn.close() in auto-reconnect wrapper

close() function purpose is to close the connection...
Marek Marczykowski-Górecki 6 years ago
parent
commit
d57120d809
1 changed files with 2 additions and 0 deletions
  1. 2 0
      qubes/app.py

+ 2 - 0
qubes/app.py

@@ -120,6 +120,8 @@ class VirConnectWrapper(object):
         attr = getattr(self._conn, attrname)
         if not isinstance(attr, collections.Callable):
             return attr
+        if attrname == 'close':
+            return attr
 
         @functools.wraps(attr)
         def wrapper(*args, **kwargs):