This commit is contained in:
Matthias Radestock committed 2015-02-01 16:50:43 +00:00
1 parent 2d135f3da0
commit b43e5debb1
1 file changed
+2 -1
+2 -1
View File
@@ -243,7 +243,7 @@ func (conn *LocalConnection) run(queryChan <-chan *ConnectionInteraction, accept
// matters [1], b) it prevents unnecessary delays in entering the // matters [1], b) it prevents unnecessary delays in entering the
// main connection loop, and c) it guards against potential // main connection loop, and c) it guards against potential
// deadlocks. // deadlocks.
go func () { go func() {
conn.Router.Ourself.AddConnection(conn) conn.Router.Ourself.AddConnection(conn)
conn.receiveTCP(dec) conn.receiveTCP(dec)
}() }()
@@ -270,6 +270,7 @@ func (conn *LocalConnection) run(queryChan <-chan *ConnectionInteraction, accept
conn.log("connection shutting down") conn.log("connection shutting down")
} }
} }
// [1] In the absence of any indirect connectivity to the remote peer, // [1] In the absence of any indirect connectivity to the remote peer,
// the first we hear about it (and any peers reachable from it) is // the first we hear about it (and any peers reachable from it) is
// through topology gossip it sends us on the connection. We must // through topology gossip it sends us on the connection. We must