Skip to content
Permalink
Browse files

bugfix: check for closing handle

  • Loading branch information...
Ryan Phillips
Ryan Phillips committed Sep 5, 2012
1 parent 950c457 commit 0cf8e079ac76b9950ca0e9fc070976b07060ad84
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/luv_handle.c
@@ -84,6 +84,9 @@ void luv_on_close(uv_handle_t* handle) {
int luv_close (lua_State* L) {
uv_handle_t* handle = luv_checkudata(L, 1, "handle");
/* printf("close \tlhandle=%p handle=%p\n", handle->data, handle);*/
if (uv_is_closing(handle)) {
return;
}
uv_close(handle, luv_on_close);
luv_handle_ref(L, handle->data, 1);
return 0;

0 comments on commit 0cf8e07

Please sign in to comment.
You can’t perform that action at this time.