diff options
-rw-r--r-- | syncClientSocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index 40954c4..34a23f0 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -49,7 +49,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) iss_ << buf[index]; } - while(!iss_.fail()) + while(!iss_.eof() && !iss_.fail()) { boost::archive::text_iarchive ia(iss_); SyncCommand scom(cl_); |