Skip to content

Commit db6d534

Browse files
committed
Delete duplicate callback
1 parent d66d233 commit db6d534

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

libraries/llvm/io.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,6 @@ void c_tcp_accept(Int listener, struct Pos handler, Stack stack) {
421421
}
422422
}
423423

424-
void c_tcp_shutdown_cb(uv_handle_t* handle) {
425-
Stack stack = (Stack)handle->data;
426-
free(handle);
427-
// TODO resume_Pos Unit
428-
resume_Int(stack, 0);
429-
}
430-
431424
void c_tcp_shutdown(Int handle, Stack stack) {
432425
uv_handle_t* uv_handle = (uv_handle_t*)handle;
433426

@@ -439,7 +432,7 @@ void c_tcp_shutdown(Int handle, Stack stack) {
439432
}
440433

441434
uv_handle->data = stack;
442-
uv_close(uv_handle, c_tcp_shutdown_cb);
435+
uv_close(uv_handle, c_tcp_close_cb);
443436
}
444437

445438

0 commit comments

Comments
 (0)