mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'tcpserv' of https://github.com/tux3/toxcore
This commit is contained in:
commit
760333b907
@ -818,9 +818,10 @@ static sock_t new_listening_TCP_socket(int family, uint16_t port)
|
||||
return ~0;
|
||||
}
|
||||
|
||||
int ok = 1;
|
||||
#ifndef TCP_SERVER_USE_EPOLL
|
||||
ok = set_socket_nonblock(sock);
|
||||
int ok = set_socket_nonblock(sock);
|
||||
#else
|
||||
int ok = 1;
|
||||
#endif
|
||||
|
||||
if (ok && family == AF_INET6) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user