Fixed a typo

This commit is contained in:
Davis King 2012-10-20 15:43:40 -04:00
parent 77d3c9ec66
commit b273b1bdb2

View File

@ -274,7 +274,7 @@ namespace dlib
int flag = 1;
int status = setsockopt( connection_socket, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(flag) );
if (ret == SOCKET_ERROR)
if (status == SOCKET_ERROR)
return OTHER_ERROR;
else
return 0;