mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 02:25:40 +08:00
Correct socket polling on mapping
This commit is contained in:
parent
b7e3a85e88
commit
3f2e621902
@ -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…
Reference in New Issue
Block a user