Skip to content

Commit

Permalink
[lxd vm] small polishing of LXDVirtualMachine::shutdown code.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliao committed Jun 26, 2024
1 parent 444c49d commit 7fa6ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/backends/lxd/lxd_virtual_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ void mp::LXDVirtualMachine::start()

void mp::LXDVirtualMachine::shutdown(const bool force)
{
std::unique_lock<decltype(state_mutex)> lock{state_mutex};
std::unique_lock<std::mutex> lock{state_mutex};

auto present_state = current_state();
const auto present_state = current_state();

try
{
Expand Down

0 comments on commit 7fa6ef2

Please sign in to comment.