fix error

Signed-off-by: zyxzyx <zhangyixin19@huawei.com>
This commit is contained in:
zyxzyx 2024-09-27 09:47:05 +08:00
parent 417871473e
commit acd8901754

View File

@ -61,8 +61,8 @@ RawStackPtr StackDataRepeater::GetRawStack()
{
std::unique_lock<std::mutex> lock(cacheMutex_);
if (!rawDataCacheQueue_.empty()) {
RawStackPtr rawStack = rawDataCacheQueue_.back();
rawDataCacheQueue_.pop_back();
RawStackPtr rawStack = rawDataCacheQueue_.front();
rawDataCacheQueue_.pop_front();
return rawStack;
}
return std::make_shared<RawStack>();