From 7fa6ef28b0b6621858c659c531e8f8c8ea19a622 Mon Sep 17 00:00:00 2001 From: Gerorge Liao Date: Tue, 25 Jun 2024 12:15:27 +0200 Subject: [PATCH] [lxd vm] small polishing of LXDVirtualMachine::shutdown code. --- src/platform/backends/lxd/lxd_virtual_machine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/backends/lxd/lxd_virtual_machine.cpp b/src/platform/backends/lxd/lxd_virtual_machine.cpp index cea13819e0..ed04cc6a4c 100644 --- a/src/platform/backends/lxd/lxd_virtual_machine.cpp +++ b/src/platform/backends/lxd/lxd_virtual_machine.cpp @@ -264,9 +264,9 @@ void mp::LXDVirtualMachine::start() void mp::LXDVirtualMachine::shutdown(const bool force) { - std::unique_lock lock{state_mutex}; + std::unique_lock lock{state_mutex}; - auto present_state = current_state(); + const auto present_state = current_state(); try {