diff --git a/src/mesh/PhoneAPI.cpp b/src/mesh/PhoneAPI.cpp index ffe413056..720743907 100644 --- a/src/mesh/PhoneAPI.cpp +++ b/src/mesh/PhoneAPI.cpp @@ -545,8 +545,9 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf) prefetchNodeInfos(); } else { LOG_DEBUG("Done sending %d of %d nodeinfos millis=%u", readIndex, nodeDB->getNumMeshNodes(), millis()); - concurrency::LockGuard guard(&nodeInfoMutex); + nodeInfoMutex.lock(); nodeInfoQueue.clear(); + nodeInfoMutex.unlock(); // Replay states no-op for legacy clients / excluded DBs. state = STATE_REPLAY_POSITIONS; return getFromRadio(buf);