Fixed tiny bug in sock_recv_string that caused some clients to hang.

This commit is contained in:
robijn committed 2004-02-06 16:33:55 +00:00
1 parent 481b80e17a
commit 80aa4d3d1e
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ sock_recv_string (int fd, char *dest, size_t maxlen)
#endif #endif
if (err == -1) { if (err == -1) {
if (errno == EAGAIN) { if (errno == EAGAIN) {
if (recv) { if (recvBytes) {
// We've begun to read a string, but no bytes are // We've begun to read a string, but no bytes are
// available. Loop. // available. Loop.
continue; continue;