mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 05:01:29 +00:00
Apparently 0 is a vaid file descriptor in OSX
This commit is contained in:
parent
4d70cb20e7
commit
f915eed0f4
@ -97,8 +97,12 @@ void BaseTCPServer::ListenNewConnections() {
|
|||||||
from.sin_family = AF_INET;
|
from.sin_family = AF_INET;
|
||||||
fromlen = sizeof(from);
|
fromlen = sizeof(from);
|
||||||
LockMutex lock(&MSock);
|
LockMutex lock(&MSock);
|
||||||
|
#ifndef DARWIN // Corysia - On OSX, 0 is a valid fd.
|
||||||
if (!sock)
|
if (!sock)
|
||||||
return;
|
return;
|
||||||
|
#else
|
||||||
|
if (sock == -1) return;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Check for pending connects
|
// Check for pending connects
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user