From ff1b3a0bcb430ac2d70df7d2155e21e5a028fae1 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Sun, 29 Jan 2017 04:55:04 -0500 Subject: [PATCH] changes in step clearing of receive buffer --- src/CommunicationManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index 497bf07..2f5ab85 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -373,9 +373,9 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() if (size_in_messages > 0) { if(!multi_msgs_receive.empty()) steps++; - if(steps>1000){ + if(steps>500){ steps=0; - //multi_msgs_receive.clear(); + multi_msgs_receive.clear(); receiver_cur_checksum=0; } uint64_t current_int64 = 0;