From 0e9fcf1c42a6653b40af20258e6f2a70e8c13c17 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 23 Dec 2014 13:13:02 +0000 Subject: [PATCH] limited number of error outputs to GetRsRawItem() git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7783 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/pqipersongrp.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/pqi/pqipersongrp.cc b/libretroshare/src/pqi/pqipersongrp.cc index ddd5839bf..dd992b012 100644 --- a/libretroshare/src/pqi/pqipersongrp.cc +++ b/libretroshare/src/pqi/pqipersongrp.cc @@ -82,9 +82,13 @@ int pqipersongrp::tickServiceRecv() while(NULL != (pqi = GetRsRawItem())) { + static int ntimes=0 ; + if(++ntimes < 20) + { std::cerr << "pqipersongrp::tickServiceRecv() GetRsRawItem()"; std::cerr << " should never happen anymore!"; std::cerr << std::endl; + } ++i; pqioutput(PQL_DEBUG_BASIC, pqipersongrpzone,