Meer debugging

This commit is contained in:
Thulinma 2010-11-08 19:15:38 +01:00
parent a575eb2359
commit af5c1666cb

View file

@ -36,8 +36,10 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock
int r = 0; int r = 0;
r = DDV_iread(buffer + sofar,count-sofar,sock); r = DDV_iread(buffer + sofar,count-sofar,sock);
if (r < 0){ if (r < 0){
if (errno != EWOULDBLOCK){
All_Hell_Broke_Loose = true; All_Hell_Broke_Loose = true;
fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno)); fprintf(stderr, "ReadUntil fail: %s. All Hell Broke Loose!\n", strerror(errno));
}
return false; return false;
} }
sofar += r; sofar += r;