Meer debugging
This commit is contained in:
parent
0d7882f68b
commit
4c6f17cdba
1 changed files with 4 additions and 2 deletions
|
@ -36,8 +36,10 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock
|
|||
int r = 0;
|
||||
r = DDV_iread(buffer + sofar,count-sofar,sock);
|
||||
if (r < 0){
|
||||
if (errno != EWOULDBLOCK){
|
||||
All_Hell_Broke_Loose = true;
|
||||
fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
sofar += r;
|
||||
|
|
Loading…
Add table
Reference in a new issue