summaryrefslogtreecommitdiff
path: root/node/Switch.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-16 17:47:26 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-16 17:47:26 -0400
commit46f868bd4fb2fd7b0816ded98974935aacddf5e6 (patch)
tree1e892172060447a9959977b466980c506572457a /node/Switch.cpp
parent58fa6cab4397fe7b0f4fe883e9d1632f5b73f6f9 (diff)
downloadinfinitytier-46f868bd4fb2fd7b0816ded98974935aacddf5e6.tar.gz
infinitytier-46f868bd4fb2fd7b0816ded98974935aacddf5e6.zip
Lots of cleanup, more work on certificates, some security fixes.
Diffstat (limited to 'node/Switch.cpp')
-rw-r--r--node/Switch.cpp6
1 files changed, 6 insertions, 0 deletions
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> &peer)
{
{