about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/uv_hl.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libstd/uv_hl.rs b/src/libstd/uv_hl.rs
index 7eaf52ad96f..48d37753208 100644
--- a/src/libstd/uv_hl.rs
+++ b/src/libstd/uv_hl.rs
@@ -269,9 +269,10 @@ crust fn high_level_wake_up_cb(async_handle: *ll::uv_async_t,
 crust fn tear_down_close_cb(handle: *ll::uv_async_t) unsafe {
     log(debug, #fmt("tear_down_close_cb called, closing handle at %?",
                     handle));
-    // TODO: iterate through open handles on the loop and uv_close()
-    // them all
-    //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";
+    }
 }
 
 fn high_level_tear_down(data: *global_loop_data) unsafe {