Browse Source

log nullptr from cap()

cl-refactor
subtly 10 years ago
parent
commit
d41101c307
  1. 8
      libwhisper/WhisperHost.cpp

8
libwhisper/WhisperHost.cpp

@ -163,7 +163,13 @@ void WhisperHost::uninstallWatch(unsigned _i)
void WhisperHost::doWork()
{
for (auto i: peerSessions())
i.first->cap<WhisperPeer>()->sendMessages();
{
auto w = i.first->cap<WhisperPeer>();
if (w)
w->sendMessages();
else
cwarn << "cap<WhisperPeer>() returned nullptr";
}
cleanup();
}

Loading…
Cancel
Save