p2p/net/swarm: dial adding conn note

This commit is contained in:
Juan Batiz-Benet 2015-01-13 01:23:43 -08:00
parent 25c6ab8a26
commit 8e888b1d79

View File

@ -127,6 +127,7 @@ func (s *Swarm) Dial(ctx context.Context, p peer.ID) (*Conn, error) {
}
// ok, we have been charged to dial! let's do it.
// if it succeeds, dial will add the conn to the swarm itself.
conn, err = s.dial(ctx, p)
s.dsync.Unlock(p)
if err != nil {