mirror of
https://github.com/3proxy/3proxy.git
synced 2026-05-13 13:57:26 +00:00
Correct socket polling on mapping
This commit is contained in:
parent
b7e3a85e88
commit
3f2e621902
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue