connection: Unconditionally report connection leak

Leaked connection may mean the app keeps libvirtd socket activated
daemon running for longer than necessary, so it's useful to report
this

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-11-10 12:43:04 -05:00
parent 2773bc35bf
commit 98ca65f183
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ class vmmConnection(vmmGObject):
self._objects = _ObjectList()
closeret = self._backend.close()
if closeret == 1 and self.config.CLITestOptions.leak_debug:
if closeret == 1:
log.debug( # pragma: no cover
"LEAK: conn close() returned 1, "
"meaning refs may have leaked.")