unix: Remove assert in uv__pipe_accept

This assert unnecessarily prevents people from using the pipe_wrap
class in node to send file descriptors over sockets.
This commit is contained in:
isaacs 2012-01-30 11:28:54 -08:00
parent f9b478cfd8
commit 98c0498dbc

View File

@ -251,7 +251,6 @@ void uv__pipe_accept(EV_P_ ev_io* watcher, int revents) {
pipe = watcher->data;
assert(pipe->type == UV_NAMED_PIPE);
assert(pipe->pipe_fname != NULL);
sockfd = uv__accept(pipe->fd, (struct sockaddr *)&saddr, sizeof saddr);
if (sockfd == -1) {