mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 09:28:21 +00:00
Apparently 0 is a vaid file descriptor in OSX
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user