mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed a typo
This commit is contained in:
parent
77d3c9ec66
commit
b273b1bdb2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user