mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-21 04:48:14 -05:00
Sync changes.
This commit is contained in:
@@ -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; });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user