diff --git a/file/gl_obj.cc b/file/gl_obj.cc index 97e9a60..caad78b 100644 --- a/file/gl_obj.cc +++ b/file/gl_obj.cc @@ -150,7 +150,7 @@ class ObjBase : public nf7::FileBase, ResourcePromise pro {ctx}; mtx_.AcquireLock(ctx, ex).ThenIf([this, ctx, pro](auto& k) mutable { - if (!fu_) { + if (!fu_ || fu_->error()) { watch_ = std::make_shared(env()); const auto handler = [self = life_.ref()](auto&) {