Ehh.... Yeah. Again, nothing to see here. Boolean logic. Whee.
This commit is contained in:
parent
e61eba35da
commit
bfb2019c3a
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ void setFDBlocking(int FD, bool blocking){
|
||||||
/// Internally used call to make an file descriptor blocking or not.
|
/// Internally used call to make an file descriptor blocking or not.
|
||||||
bool isFDBlocking(int FD){
|
bool isFDBlocking(int FD){
|
||||||
int flags = fcntl(FD, F_GETFL, 0);
|
int flags = fcntl(FD, F_GETFL, 0);
|
||||||
return (flags & O_NONBLOCK);
|
return !(flags & O_NONBLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set this socket to be blocking (true) or nonblocking (false).
|
/// Set this socket to be blocking (true) or nonblocking (false).
|
||||||
|
|
Loading…
Add table
Reference in a new issue