mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +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;
|
||||
fromlen = sizeof(from);
|
||||
LockMutex lock(&MSock);
|
||||
#ifndef DARWIN // Corysia - On OSX, 0 is a valid fd.
|
||||
if (!sock)
|
||||
return;
|
||||
#else
|
||||
if (sock == -1) return;
|
||||
#endif
|
||||
|
||||
// Check for pending connects
|
||||
#ifdef _WINDOWS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user