diff --git a/src/uvw/resource.hpp b/src/uvw/resource.hpp index 608db68d..f3f7e2c5 100644 --- a/src/uvw/resource.hpp +++ b/src/uvw/resource.hpp @@ -55,6 +55,7 @@ protected: U* get() const noexcept { return reinterpret_cast(handle.get()); } uv_loop_t* parent() const noexcept { return pLoop->loop.get(); } + void reset() noexcept { ref = nullptr; } public: explicit Resource(const Resource &) = delete;