mirror of
https://github.com/eddyem/SBIG_340.git
synced 2025-12-07 11:15:16 +03:00
socket.c line 245: if(_read < 0){ -> if(_read < 1){
This commit is contained in:
parent
b24eaf360b
commit
1739113863
2
socket.c
2
socket.c
@ -242,7 +242,7 @@ void *handle_socket(void *asock){
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
_read = read(sock, buff, BUFLEN);
|
_read = read(sock, buff, BUFLEN);
|
||||||
if(_read < 0){ // error or disconnect
|
if(_read < 1){ // error or disconnect
|
||||||
DBG("Nothing to read from fd %d (ret: %zd)", sock, _read);
|
DBG("Nothing to read from fd %d (ret: %zd)", sock, _read);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user