parent
7f1604fdaf
commit
064775fdfd
@ -16,8 +16,9 @@ UVW_INLINE int async_handle::init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
UVW_INLINE void async_handle::send() {
|
UVW_INLINE void async_handle::send() {
|
||||||
// uv_async_send only returns an error if the handle has the wrong type which is not the case here
|
if(auto err = uv_async_send(raw()); err != 0) {
|
||||||
uv_async_send(raw());
|
publish(error_event{err});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace uvw
|
} // namespace uvw
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user