}
try {
+ MultiThreadingLock lock(*mutex_);
+
if (!echo) {
isc_throw(BadValue, "PingCheckMgr::sendCompleted() - echo is empty");
}
}
// Update the expiration timer if necessary.
- setNextExpiration();
+ setNextExpirationInternal();
} catch (const std::exception& ex) {
LOG_ERROR(ping_check_logger, PING_CHECK_MGR_SEND_COMPLETED_ERROR)
.arg(ex.what());
}
try {
+ MultiThreadingLock lock(*mutex_);
+
if (!reply) {
isc_throw(BadValue, "PingCheckMgr::replyReceived() - echo is empty");
}
return;
}
- setNextExpiration();
+ setNextExpirationInternal();
} catch (const std::exception& ex) {
LOG_ERROR(ping_check_logger, PING_CHECK_MGR_REPLY_RECEIVED_ERROR)
.arg(ex.what());