Merge pull request #1011 from Nanquitas/patch-2

sock_util: remove unneeded check
This commit is contained in:
TuxSH 2018-01-19 01:28:08 +01:00 committed by GitHub
commit 97ae106d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,8 +135,6 @@ void server_bind(struct sock_server *serv, u16 port)
server_sockfd = socSocket(AF_INET, SOCK_STREAM, 0);
}
if(server_sockfd != -1)
{
struct sockaddr_in saddr;
saddr.sin_family = AF_INET;
saddr.sin_port = htons(port);
@ -163,7 +161,6 @@ void server_bind(struct sock_server *serv, u16 port)
serv->ctx_ptrs[idx] = new_ctx;
}
}
}
}
void server_run(struct sock_server *serv)