connection: Actually fix domain event deregister

This commit is contained in:
Cole Robinson 2014-02-14 10:00:45 -05:00
parent 517fbe0b30
commit 88538f916d
1 changed files with 2 additions and 2 deletions

View File

@ -925,11 +925,11 @@ class vmmConnection(vmmGObject):
dev.cleanup()
if not self._backend.is_closed():
if self._domain_cb_id is None:
if self._domain_cb_id is not None:
self._backend.domainEventDeregisterAny(self._domain_cb_id)
self._domain_cb_id = None
if self._network_cb_id is None:
if self._network_cb_id is not None:
self._backend.networkEventDeregisterAny(self._network_cb_id)
self._network_cb_id = None