diff --git a/device/plugins/native_daemon/src/stack_data_repeater.cpp b/device/plugins/native_daemon/src/stack_data_repeater.cpp index dd56d0d06..08b424db1 100644 --- a/device/plugins/native_daemon/src/stack_data_repeater.cpp +++ b/device/plugins/native_daemon/src/stack_data_repeater.cpp @@ -61,8 +61,8 @@ RawStackPtr StackDataRepeater::GetRawStack() { std::unique_lock 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();