summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 22:39:25 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 22:39:25 +0000
commit6b870aa4c2c968fbec5b5be9e4ff4d9e108d7fc7 (patch)
tree31951a4faf137167aa1a7615a2c98d522124792a /syncClientSocket.cpp
parentmodified makefile for anyctr (diff)
test
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r--syncClientSocket.cpp4
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);