We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9db0c9 commit e02057cCopy full SHA for e02057c
src/libstd/uv_hl.rs
@@ -269,9 +269,10 @@ crust fn high_level_wake_up_cb(async_handle: *ll::uv_async_t,
269
crust fn tear_down_close_cb(handle: *ll::uv_async_t) unsafe {
270
log(debug, #fmt("tear_down_close_cb called, closing handle at %?",
271
handle));
272
- // TODO: iterate through open handles on the loop and uv_close()
273
- // them all
274
- //let data = ll::get_data_for_uv_handle(handle) as *global_loop_data;
+ let data = ll::get_data_for_uv_handle(handle) as *global_loop_data;
+ if vec::len((*data).refd_handles) > 0 {
+ fail "Didn't unref all high-level handles";
275
+ }
276
}
277
278
fn high_level_tear_down(data: *global_loop_data) unsafe {
0 commit comments