4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-13 14:06:28 +00:00

more conn migration

This commit is contained in:
Arceliar
2019-08-24 00:17:37 -05:00
parent 6ecbc439f0
commit da9f7151e3
3 changed files with 47 additions and 29 deletions

View File

@ -65,6 +65,7 @@ func (d *Dialer) DialByNodeIDandMask(nodeID, nodeMask *crypto.NodeID) (*Conn, er
conn.Close()
return nil, err
}
conn.session.setConn(nil, conn)
t := time.NewTimer(6 * time.Second) // TODO use a context instead
defer t.Stop()
select {