git-svn-id: svn://elaine/murooma/trunk@111 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-27 22:00:16 +00:00
parent 799aa5c156
commit 80547e8373

View file

@ -33,9 +33,9 @@ int main () {
timeval tvChunk;
gettimeofday(&tvChunk, NULL);
long nextTick = getTickCount();
while (!cin.bad())
while (cin.good())
{
for (size_t n=0; (n<WIRE_CHUNK_SIZE) && !cin.bad(); ++n)
for (size_t n=0; (n<WIRE_CHUNK_SIZE) && cin.good(); ++n)
{
c[0] = cin.get();
c[1] = cin.get();