From 46f868bd4fb2fd7b0816ded98974935aacddf5e6 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 16 Oct 2013 17:47:26 -0400 Subject: Lots of cleanup, more work on certificates, some security fixes. --- node/Switch.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node/Switch.cpp') diff --git a/node/Switch.cpp b/node/Switch.cpp index f21f1e64..f6fe4e3a 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -466,6 +466,12 @@ void Switch::requestWhois(const Address &addr) _sendWhoisRequest(addr,(const Address *)0,0); } +void Switch::cancelWhoisRequest(const Address &addr) +{ + Mutex::Lock _l(_outstandingWhoisRequests_m); + _outstandingWhoisRequests.erase(addr); +} + void Switch::doAnythingWaitingForPeer(const SharedPtr &peer) { { -- cgit v1.2.3