Ehh.... Yeah. Again, nothing to see here. Boolean logic. Whee.

This commit is contained in:
Thulinma 2013-10-24 11:13:54 +02:00
parent e61eba35da
commit bfb2019c3a

View file

@ -206,7 +206,7 @@ void setFDBlocking(int FD, bool blocking){
/// Internally used call to make an file descriptor blocking or not.
bool isFDBlocking(int FD){
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).