diff options
Diffstat (limited to 'Utilities/cmlibuv/src/uv-common.c')
-rw-r--r-- | Utilities/cmlibuv/src/uv-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmlibuv/src/uv-common.c b/Utilities/cmlibuv/src/uv-common.c index e88347a..d8f7b0e 100644 --- a/Utilities/cmlibuv/src/uv-common.c +++ b/Utilities/cmlibuv/src/uv-common.c @@ -296,7 +296,9 @@ int uv_tcp_bind(uv_tcp_t* handle, if (handle->type != UV_TCP) return UV_EINVAL; - + if (uv__is_closing(handle)) { + return UV_EINVAL; + } if (addr->sa_family == AF_INET) addrlen = sizeof(struct sockaddr_in); else if (addr->sa_family == AF_INET6) |