diff options
| author | 2006-05-03 09:28:01 +0000 | |
|---|---|---|
| committer | 2006-05-03 09:28:01 +0000 | |
| commit | 14004479dc1d471c4388f0ab7f86f869ba7f098a (patch) | |
| tree | 12678fda8217ae43ee5ab9882797588470194597 /src/socket.cpp | |
| parent | Return false was missing (diff) | |
Checks for negative fd's when adding them to the socketengine so we can generate less debug output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3929 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index c4129f67c..a6847fce1 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -177,8 +177,11 @@ int BindPorts(bool bail) else { /* Associate the new open port with a slot in the socket engine */ - ServerInstance->SE->AddFd(openSockfd[count],true,X_LISTEN); - BoundPortCount++; + if (openSockfd[count] > -1) + { + ServerInstance->SE->AddFd(openSockfd[count],true,X_LISTEN); + BoundPortCount++; + } } } return InitialPortCount + BoundPortCount; |
