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_kqueue.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_kqueue.cpp')
-rw-r--r-- | src/socketengine_kqueue.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socketengine_kqueue.cpp b/src/socketengine_kqueue.cpp index 388a84f29..656c68224 100644 --- a/src/socketengine_kqueue.cpp +++ b/src/socketengine_kqueue.cpp @@ -58,6 +58,9 @@ bool KQueueEngine::AddFd(int fd, bool readable, char type) return false; } + if (ref[fd]) + return false; + ref[fd] = type; if (readable) { |