From 7c34736f56563df5789cf13f0d7f704a0601a49d Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 4 Apr 2013 13:14:59 +0000 Subject: [PATCH] removed debug output (pritned only once now) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6290 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3chatservice.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3chatservice.cc b/libretroshare/src/services/p3chatservice.cc index c4e3b4a43..59430723b 100644 --- a/libretroshare/src/services/p3chatservice.cc +++ b/libretroshare/src/services/p3chatservice.cc @@ -636,7 +636,15 @@ void p3ChatService::receiveChatQueue() case RS_PKT_SUBTYPE_CHAT_LOBBY_LIST_deprecated: handleRecvChatLobbyList (dynamic_cast(item)) ; break ; default: - std::cerr << "Unhandled item subtype " << item->PacketSubType() << " in p3ChatService: " << std::endl; + { + static int already = false ; + + if(!already) + { + std::cerr << "Unhandled item subtype " << (int)item->PacketSubType() << " in p3ChatService: " << std::endl; + already = true ; + } + } } delete item ; }