unit test for dhb

This commit is contained in:
2022-06-05 12:52:55 +02:00
parent 1611a4e1f0
commit bf673c56c6
22 changed files with 224 additions and 138 deletions

View File

@ -65,7 +65,9 @@ void DeviceHandlerBase::setThermalStateRequestPoolIds(lp_id_t thermalStatePoolId
}
DeviceHandlerBase::~DeviceHandlerBase() {
delete comCookie;
if (comCookie != nullptr) {
delete comCookie;
}
if (defaultFDIRUsed) {
delete fdirInstance;
}
@ -253,7 +255,9 @@ void DeviceHandlerBase::decrementDeviceReplyMap() {
replyToReply(replyPair.first, replyPair.second, TIMEOUT);
missedReply(replyPair.first);
timedOut = false;
replyPair.second.active = false;
if (not replyPair.second.periodic) {
replyPair.second.active = false;
}
}
}
}