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 // TODO p2p: capability-based rating
for (auto i: peerSessions()) for (auto i: peerSessions())
{ {
auto w = i.first->cap<WhisperPeer>(); auto w = i.first->cap<WhisperPeer>().get();
if (w.get() == _p) if (w == _p)
w->addRating(1); w->addRating(1);
else else
w->noteNewMessage(h, _m); w->noteNewMessage(h, _m);

Loading…
Cancel
Save