diff options
Diffstat (limited to 'src/HandshakeExtensionMessage.cc')
| -rw-r--r-- | src/HandshakeExtensionMessage.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/HandshakeExtensionMessage.cc b/src/HandshakeExtensionMessage.cc index df003b5b..e58a70e3 100644 --- a/src/HandshakeExtensionMessage.cc +++ b/src/HandshakeExtensionMessage.cc @@ -39,7 +39,6 @@ #include "Data.h" #include "Util.h" #include "BencodeVisitor.h" -#include "BtRegistry.h" #include "MetaFileUtil.h" #include "DlAbortEx.h" #include "LogFactory.h" @@ -107,14 +106,6 @@ void HandshakeExtensionMessage::doReceivedAction() const map<string, uint8_t>::value_type& vt = *itr; _peer->setExtension(vt.first, vt.second); } - if(_peer->port > 0) { - // This is needed when _peer is a connection initiator, listen port of - // _peer is now available, which is initially unknown. - // If _peer is a receiver or already its port is known, _peer has to be - // already added to PeerStorage using addPeer() and call - // PeerStorage::addPeer() here does nothing and just returns false. - PEER_STORAGE(_btContext)->addPeer(_peer); - } } void HandshakeExtensionMessage::setPeer(const PeerHandle& peer) |
