diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 21:25:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-07 21:25:48 +0000 |
commit | 358f2064c432e1e3ef153adeb5aed0fa2e35efde (patch) | |
tree | 721353c3c77d93f15bbd9d6fd80df2761b4b6117 /src/socketengine_select.cpp | |
parent | 923586e54c005780edcc5c427bb4698caf16bcf0 (diff) |
Bail if we couldn't bind any ports (when did this get broken?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4774 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine_select.cpp')
-rw-r--r-- | src/socketengine_select.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socketengine_select.cpp b/src/socketengine_select.cpp index f36c96379..a57da4a31 100644 --- a/src/socketengine_select.cpp +++ b/src/socketengine_select.cpp @@ -50,6 +50,9 @@ bool SelectEngine::AddFd(int fd, bool readable, char type) fds[fd] = fd; + if (ref[fd]) + return false; + ref[fd] = type; if (readable) { |