From 6b870aa4c2c968fbec5b5be9e4ff4d9e108d7fc7 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 22:39:25 +0000 Subject: test --- syncClientSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index ab765db..e6c8761 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -47,9 +47,9 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) std::cout << buf[index]; iss_ << buf[index]; } - while (1) + while (iss_.good()) { - if(missing_chars==-1 && iss_.good() && iss_.str().size()>5) + if(missing_chars==-1 && iss_.str().size()>5) { char * buffer = new char [6]; iss_.read(buffer,6); -- cgit v1.2.3