about summary refs log tree commit diff stats
path: root/src/uv_link_t.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uv_link_t.c')
-rw-r--r--src/uv_link_t.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/uv_link_t.c b/src/uv_link_t.c
index 59b5fa7..a3359cb 100644
--- a/src/uv_link_t.c
+++ b/src/uv_link_t.c
@@ -114,14 +114,6 @@ void uv_link_propagate_close(uv_link_t* link, uv_link_t* source,
 
   CHECK_EQ(link->child, NULL, "uv_link_t: attempt to close chained link");
 
-  /* We are in an API call, wait for it to end before destroying everything */
-  if (link->close_depth != 0) {
-    CHECK_EQ(link, source, "pending close_cb for non-leaf link");
-
-    link->saved_close_cb = cb;
-    return;
-  }
-
   /* Find root */
   count = 1;
   for (root = link; root->parent != NULL; root = root->parent)