summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 7f8331ad27..1cf8f7668c 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -190,7 +190,7 @@ class QemuRunner:
190 logger.info("Sending SIGKILL to runqemu") 190 logger.info("Sending SIGKILL to runqemu")
191 os.killpg(self.runqemu.pid, signal.SIGKILL) 191 os.killpg(self.runqemu.pid, signal.SIGKILL)
192 self.runqemu = None 192 self.runqemu = None
193 if self.server_socket: 193 if hasattr(self, 'server_socket') and self.server_socket:
194 self.server_socket.close() 194 self.server_socket.close()
195 self.server_socket = None 195 self.server_socket = None
196 self.qemupid = None 196 self.qemupid = None