diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-16 17:47:26 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-16 17:47:26 -0400 |
| commit | 46f868bd4fb2fd7b0816ded98974935aacddf5e6 (patch) | |
| tree | 1e892172060447a9959977b466980c506572457a /node/Switch.cpp | |
| parent | 58fa6cab4397fe7b0f4fe883e9d1632f5b73f6f9 (diff) | |
| download | infinitytier-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.cpp | 6 |
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) { { |
