Sync changes.

This commit is contained in:
XMRig 2019-03-17 16:03:45 +07:00
parent c94c0210f7
commit bbf0d11a51
2 changed files with 4 additions and 3 deletions

View file

@ -47,6 +47,10 @@ public:
template<typename T>
static inline void deleteLater(T handle)
{
if (uv_is_closing(reinterpret_cast<uv_handle_t *>(handle))) {
return;
}
uv_close(reinterpret_cast<uv_handle_t *>(handle), [](uv_handle_t *handle) { delete handle; });
}
};