refinement
This commit is contained in:
parent
6587d76305
commit
29c8d22a6f
@ -42,8 +42,9 @@ class Handle: public BaseHandle, public Emitter<T>, public Self<T> {
|
||||
|
||||
static void closeCallback(uv_handle_t *handle) {
|
||||
Handle<T> &ref = *(static_cast<T*>(handle->data));
|
||||
auto ptr = ref.shared_from_this();
|
||||
ptr->reset();
|
||||
ref.publish(CloseEvent{});
|
||||
ref.reset();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user