summaryrefslogtreecommitdiff
path: root/syncClientSocket.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 23:14:40 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 23:14:40 +0000
commit9ef36b2c11cba9f289badab7737d807c06e3eb80 (patch)
tree968f97bb160035043496022f44795d5713c3bc8f /syncClientSocket.cpp
parenttest (diff)
fixed
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 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;
}