summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-26 23:15:53 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-26 23:15:53 +0000
commit5d3af3649f82ac02aaad410547b84f8e22590067 (patch)
treee197fb4f52a99b9597c8dd7024c90677f5931698
parent1977781b7a671c4e08034ed6f4217d6baad70cc1 (diff)
parent445b6460baff50a2f22eeed4a0aef70bece6fdb0 (diff)
downloadweaver-sdk-release.tar.gz
Snap for 11630439 from 445b6460baff50a2f22eeed4a0aef70bece6fdb0 to sdk-releasesdk-releasebusytown-mac-infra-release
Change-Id: I27a630a04e2a76a4649a9a177c276e8dd35b5bc9
-rw-r--r--libese_weaver/src/weaver-impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libese_weaver/src/weaver-impl.cpp b/libese_weaver/src/weaver-impl.cpp
index 85f950b..a253545 100644
--- a/libese_weaver/src/weaver-impl.cpp
+++ b/libese_weaver/src/weaver-impl.cpp
@@ -156,6 +156,9 @@ Status_Weaver WeaverImpl::Read(uint32_t slotId, const std::vector<uint8_t> &key,
if (mParser->ParseGetDataInfo(std::move(resp), getDataInfo) == WEAVER_STATUS_OK) {
/* convert timeout from getDataInfo sec to millisecond assign same to read response */
readRespInfo.timeout = (getDataInfo.timeout * 1000);
+ if (getDataInfo.timeout > 0) {
+ status = WEAVER_STATUS_THROTTLE;
+ }
}
}
}