From c21e0db6ea6d66d029e351d45aa15fc3a9b2011c Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 13 Mar 2018 16:07:23 -0400 Subject: [PATCH] inspection: Remove startup delay Like the comment says it shouldn't matter --- virtManager/inspection.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/virtManager/inspection.py b/virtManager/inspection.py index fb74b7ea4..a01ae963c 100644 --- a/virtManager/inspection.py +++ b/virtManager/inspection.py @@ -60,7 +60,6 @@ class vmmInspection(vmmGObject): vmmGObject.__init__(self) self._thread = None - self._wait = 5 * 1000 # 5 seconds self._q = queue.Queue() self._conns = {} @@ -108,23 +107,10 @@ class vmmInspection(vmmGObject): self._q.put(obj) def _start(self): - if self._thread: - return - - def cb(): - if self._thread: - self._thread.start() - return 0 - self._thread = threading.Thread( name="inspection thread", target=self._run) self._thread.daemon = True - - # Wait a few seconds before we do anything. This prevents - # inspection from being a burden for initial virt-manager - # interactivity (although it shouldn't affect interactivity at all) - logging.debug("waiting before startup wait=%s", self._wait) - self.timeout_add(self._wait, cb) + self._thread.start() def _stop(self): if self._thread is None: