From 9ef36b2c11cba9f289badab7737d807c06e3eb80 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Thu, 28 Feb 2008 23:14:40 +0000 Subject: fixed --- syncClientSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncClientSocket.cpp b/syncClientSocket.cpp index 1588dc6..bdfd973 100644 --- a/syncClientSocket.cpp +++ b/syncClientSocket.cpp @@ -50,7 +50,7 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) } while (1) { - cLog.msg(Log::PRIO_NOTICE) << "buffer size "<< buffer_size_ << " missing_chars " << missing_chars; +// cLog.msg(Log::PRIO_NOTICE) << "buffer size "<< buffer_size_ << " missing_chars " << missing_chars; if(missing_chars==-1 && buffer_size_>5) { char * buffer = new char [6+1]; @@ -72,9 +72,9 @@ void SyncClientSocket::OnRawData(const char *buf,size_t len) boost::archive::text_iarchive ia(tmp); SyncCommand scom(cl_); ia >> scom; + buffer_size_-=missing_chars; missing_chars=-1; delete buffer; - buffer_size_-=missing_chars; } else break; } -- cgit v1.2.3