This commit is contained in:
Matthias Radestock committed 2014-09-10 17:48:53 +01:00
1 parent bf38e902f2
commit 34bec14e3e
1 file changed
+2 -2
+2 -2
View File
@@ -116,8 +116,8 @@ func (cm *ConnectionMaker) checkStateAndAttemptConnections(now time.Time) {
// Add targets for peers that someone else is connected to, but we
// aren't
cm.router.Peers.ForEach(func(name PeerName, peer *Peer) {
peer.ForEachConnection(func(peer2 PeerName, conn Connection) {
if peer2 == ourself.Name || our_connected_peers[peer2] {
peer.ForEachConnection(func(otherPeer PeerName, conn Connection) {
if otherPeer == ourself.Name || our_connected_peers[otherPeer] {
return
}
address := conn.RemoteTCPAddr()