vm/dispvm: fix dispvm.cleanup() when no service was called
In such a case (especially when running in dom0) there is nothing to cleanup. Fixes QubesOS/qubes-issues#3016
This commit is contained in:
parent
596eb3d96c
commit
3d2d3a2974
@ -371,7 +371,8 @@ class DispVMWrapper(QubesVM):
|
|||||||
'''Cleanup after DispVM usage'''
|
'''Cleanup after DispVM usage'''
|
||||||
# in 'remote' case nothing is needed, as DispVM is cleaned up
|
# in 'remote' case nothing is needed, as DispVM is cleaned up
|
||||||
# automatically
|
# automatically
|
||||||
if self.app.qubesd_connection_type == 'socket':
|
if self.app.qubesd_connection_type == 'socket' and \
|
||||||
|
not self._method_dest.startswith('$dispvm'):
|
||||||
try:
|
try:
|
||||||
self.kill()
|
self.kill()
|
||||||
except qubesadmin.exc.QubesVMNotRunningError:
|
except qubesadmin.exc.QubesVMNotRunningError:
|
||||||
|
Loading…
Reference in New Issue
Block a user