From b4dd16b8ba77806b2a2e04c5972162de72c9579c Mon Sep 17 00:00:00 2001 From: Vlad Gluhovsky Date: Fri, 26 Jun 2015 13:07:30 +0200 Subject: [PATCH] mutex usage changed --- libwhisper/WhisperPeer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libwhisper/WhisperPeer.cpp b/libwhisper/WhisperPeer.cpp index 97b533bdf..13892a87b 100644 --- a/libwhisper/WhisperPeer.cpp +++ b/libwhisper/WhisperPeer.cpp @@ -117,11 +117,12 @@ void WhisperPeer::noteNewMessage(h256 _h, Envelope const& _m) void WhisperPeer::sendTopicsOfInterest(FixedHash const& _bloom) { - Guard g(x_advertiseTopicsOfInterest); + DEV_GUARDED(x_advertiseTopicsOfInterest) + m_advertiseTopicsOfInterest = false; + RLPStream s; prep(s, TopicFilterPacket, 1); s << _bloom; sealAndSend(s); - m_advertiseTopicsOfInterest = false; }