diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 12:29:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-12 12:29:40 +0000 |
commit | b81c2e4c4eda2c7ae6fa5fbccfe40c94852fdf3b (patch) | |
tree | 0018baf9ca6ebbd0b54f406c60b563763a81ed98 /src/socketengine.cpp | |
parent | 1582c2d1c54fedb39869d9632f77f848e62cd55e (diff) |
More experimental gubbins
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2330 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r-- | src/socketengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index e00657a54..23088edb9 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -41,12 +41,13 @@ SocketEngine::~SocketEngine() char SocketEngine::GetType(int fd) { /* Mask off the top bit used for 'read/write' state */ - return (ref[fd] & 0x7F); + return (ref[fd] & ~0x80); } bool SocketEngine::AddFd(int fd, bool readable, char type) { this->fds.push_back(fd); + ref[fd] = type; if (readable) ref[fd] |= X_READBIT; #ifdef USE_EPOLL |