qubes/vm/dispvm: don't crash when DispVM is already killed

This is regression of QubesOS/qubes-issues#1660

Fixes QubesOS/qubes-issues#1660
This commit is contained in:
Marek Marczykowski-Górecki 2016-11-04 13:25:09 +01:00
parent 6ff836dfa4
commit 3b209515c2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -162,7 +162,10 @@ class DispVM(qubes.vm.qubesvm.QubesVM):
'''
app = qubes.Qubes(self.app.store)
self = app.domains[self.uuid]
self.force_shutdown()
try:
self.force_shutdown()
except qubes.exc.QubesVMNotStartedError:
pass
self.remove_from_disk()
del app.domains[self]
app.save()