diff options
Diffstat (limited to 'syncClientSocket.cpp')
-rw-r--r-- | syncClientSocket.cpp | 2 |
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); |