Minder debugging
This commit is contained in:
parent
2ee4b17811
commit
4e2afeacda
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ bool ReadUntil(char * buffer, unsigned int count, unsigned int & sofar, int sock
|
|||
return false;
|
||||
}
|
||||
sofar += r;
|
||||
if (sofar >= count){return true;}
|
||||
if (sofar == count){return true;}
|
||||
if (sofar > count){
|
||||
All_Hell_Broke_Loose = true;
|
||||
fprintf(stderr, "ReadUntil fail: %s. Read too much. All Hell Broke Loose!\n", strerror(errno));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue