Revert "suppress useless checks"

This reverts commit e9dbb887c0.
This commit is contained in:
Michele Caini 2022-04-07 18:36:02 +02:00
parent 72416e814e
commit 7f1604fdaf

View File

@ -24,8 +24,9 @@ UVW_INLINE void work_req::after_work_callback(uv_work_t *req, int status) {
} }
UVW_INLINE void work_req::queue() { UVW_INLINE void work_req::queue() {
// uv_queue_work only returns an error if the callback is null which is not the case here if(auto err = this->leak_if(uv_queue_work(parent().raw(), raw(), &work_callback, &after_work_callback)); err != 0) {
this->leak_if(uv_queue_work(parent().raw(), raw(), &work_callback, &after_work_callback)); publish(error_event{err});
}
} }
} // namespace uvw } // namespace uvw