summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 22:38:21 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 22:38:21 +0000
commitaa23b6473061701c1aa62650482bcd2c593ccdcd (patch)
tree53ebe0b769cfbca0014065504fb8ff2a2a3ea752 /syncClientSocket.cpp
parentlength to size (diff)
another test
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r--syncClientSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp
index fdda068..ab765db 100644
--- a/syncClientSocket.cpp
+++ b/syncClientSocket.cpp
@@ -49,7 +49,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len)
}
while (1)
{
- if(missing_chars==-1 && iss_.str().size()>5)
+ if(missing_chars==-1 && iss_.good() && iss_.str().size()>5)
{
char * buffer = new char [6];
iss_.read(buffer,6);