Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
win: get rid of deferring bind errors for uv_pipe_t
Browse files Browse the repository at this point in the history
It doesn't work anyway
  • Loading branch information
piscisaureus committed Aug 23, 2011
1 parent a8d2613 commit b931e93
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/win/pipe.c
Expand Up @@ -300,8 +300,6 @@ int uv_pipe_bind(uv_pipe_t* handle, const char* name) {
errno = GetLastError();
if (errno == ERROR_ACCESS_DENIED) {
uv_set_error(UV_EADDRINUSE, errno);
handle->error = LOOP->last_error;
handle->flags |= UV_HANDLE_BIND_ERROR;
} else if (errno == ERROR_PATH_NOT_FOUND || errno == ERROR_INVALID_NAME) {
uv_set_error(UV_EACCESS, errno);
} else {
Expand Down Expand Up @@ -570,11 +568,6 @@ int uv_pipe_listen(uv_pipe_t* handle, int backlog, uv_connection_cb cb) {
uv_pipe_accept_t* req;
HANDLE pipeHandle;

if (handle->flags & UV_HANDLE_BIND_ERROR) {
uv_set_error(UV_EINVAL, 0);
return -1;
}

if (!(handle->flags & UV_HANDLE_BOUND) &&
!(handle->flags & UV_HANDLE_GIVEN_OS_HANDLE)) {
uv_set_error(UV_EINVAL, 0);
Expand Down

0 comments on commit b931e93

Please sign in to comment.