git-svn-id: svn://elaine/murooma/trunk@334 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-12-31 10:58:49 +00:00
parent 225fdc339a
commit fee7e56600
2 changed files with 2 additions and 4 deletions

View file

@ -129,9 +129,7 @@ int main(int argc, char* argv[])
{
int count = read(fd, chunk->payload + len, toRead - len);
//continue;
if (count == 0)
throw ServerException("count = 0");
else if (count == -1)
if (count <= 0)
usleep(100*1000);
else
len += count;