mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2025-07-13 12:56:29 +00:00
hopefully prevent a deadlock
This commit is contained in:
@ -69,7 +69,6 @@ func (d *Dialer) DialByNodeIDandMask(nodeID, nodeMask *crypto.NodeID) (*Conn, er
|
||||
defer t.Stop()
|
||||
select {
|
||||
case <-conn.session.init:
|
||||
conn.session.startWorkers()
|
||||
return conn, nil
|
||||
case <-t.C:
|
||||
conn.Close()
|
||||
|
Reference in New Issue
Block a user