Sync changes.
This commit is contained in:
parent
c94c0210f7
commit
bbf0d11a51
2 changed files with 4 additions and 3 deletions
|
@ -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; });
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue