diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -792,12 +792,12 @@ // m_rx_packets.size()); return_packet.swap(m_rx_packets.front()); m_rx_packets.pop_front(); - locker.Reset(); // Release our lock on the mutex if (m_rx_packets.empty()) { // Reset the remote command available event if we have no more packets m_ctx.Events().ResetEvents(RNBContext::event_read_packet_available); } + locker.Reset(); // Release our lock on the mutex // DNBLogThreadedIf (LOG_RNB_MEDIUM, "%8u RNBRemote::%s: '%s'", // (uint32_t)m_comm.Timer().ElapsedMicroSeconds(true), __FUNCTION__,