diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-28 22:39:25 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-28 22:39:25 +0000 |
commit | 6b870aa4c2c968fbec5b5be9e4ff4d9e108d7fc7 (patch) | |
tree | 31951a4faf137167aa1a7615a2c98d522124792a | |
parent | modified makefile for anyctr (diff) |
test
-rw-r--r-- | syncClientSocket.cpp | 4 |
1 files 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); |