Fix error in qube manager

In some cases (when a VM quickly appears and disappears)
the events were handled in a wrong order.

fixes QubesOS/qubes-issues#4414
This commit is contained in:
Marta Marczykowska-Górecka 2018-10-29 23:00:59 +01:00
parent 77cf9bf1d2
commit 8098466a07
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -427,8 +427,9 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
if vm.klass in {'TemplateVM', 'StandaloneVM'}:
try:
self.vms_in_table[vm.qid].update()
except exc.QubesException:
# the VM might have vanished in the meantime
except (exc.QubesException, KeyError):
# the VM might have vanished in the meantime or
# the signal might have been handled in the wrong order
pass
def on_domain_added(self, _submitter, _event, vm, **_kwargs):