Skip to content

Commit 15cca98

Browse files
olsonjefferybrson
authored andcommitted
---
yaml --- r: 15584 b: refs/heads/try c: e02057c h: refs/heads/master v: v3
1 parent 62455ac commit 15cca98

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: a9db0c9efe75e6adc180d1f167326e072b82792c
5+
refs/heads/try: e02057c5a58bd5498c59bbe769bfd327721f4c8d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libstd/uv_hl.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,10 @@ crust fn high_level_wake_up_cb(async_handle: *ll::uv_async_t,
269269
crust fn tear_down_close_cb(handle: *ll::uv_async_t) unsafe {
270270
log(debug, #fmt("tear_down_close_cb called, closing handle at %?",
271271
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;
272+
let data = ll::get_data_for_uv_handle(handle) as *global_loop_data;
273+
if vec::len((*data).refd_handles) > 0 {
274+
fail "Didn't unref all high-level handles";
275+
}
275276
}
276277

277278
fn high_level_tear_down(data: *global_loop_data) unsafe {

0 commit comments

Comments
 (0)