Correct socket polling on mapping

This commit is contained in:
z3APA3A 2018-12-06 00:32:37 +03:00
parent b7e3a85e88
commit 3f2e621902

View File

@ -144,11 +144,11 @@ int splicemap(struct clientparam * param, int timeo){
fds[0].events |= POLLIN;
}
if(!fds[0].events && !fds[1].events) RETURN (666);
if(!fds[0].events){
if(fds[0].fd == INVALID_SOCKET){
fdsp = fds +1;
fdsc = 1;
}
else if(!fds[1].events){
else if(fds[1].fd == INVALID_SOCKET){
fdsp = fds;
fdsc = 1;
}