Browse Source

have not seen crash here. revert unrelated change.

cl-refactor
subtly 10 years ago
parent
commit
b7a2bb3553
  1. 4
      libwhisper/WhisperHost.cpp

4
libwhisper/WhisperHost.cpp

@ -82,8 +82,8 @@ void WhisperHost::inject(Envelope const& _m, WhisperPeer* _p)
// TODO p2p: capability-based rating
for (auto i: peerSessions())
{
auto w = i.first->cap<WhisperPeer>();
if (w.get() == _p)
auto w = i.first->cap<WhisperPeer>().get();
if (w == _p)
w->addRating(1);
else
w->noteNewMessage(h, _m);

Loading…
Cancel
Save