fix an issue that rebuild of LuaJIT/Node doesn't run after build failure

This commit is contained in:
2022-11-12 12:57:46 +09:00
parent b15eee5d9c
commit c9d1cd40f3

View File

@@ -183,7 +183,9 @@ std::shared_ptr<nf7::Node::Lambda> Node::CreateLambda(
nf7::Future<std::shared_ptr<nf7::luajit::Ref>> Node::Build() noexcept
try {
if (cache_) return *cache_;
if (cache_ && !cache_->error()) {
return *cache_;
}
last_build_ = std::chrono::file_clock::now();
nf7::Future<std::shared_ptr<nf7::luajit::Ref>>::Promise pro;