mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Fix race on tun conns, but still deadlocks if more than one connection is opened
This commit is contained in:
parent
79bcfbf175
commit
781cd7571f
3 changed files with 18 additions and 8 deletions
|
@ -2,7 +2,6 @@ package yggdrasil
|
|||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
@ -124,7 +123,6 @@ func (c *Conn) Write(b []byte) (bytesWritten int, err error) {
|
|||
return 0, errors.New("session is closed")
|
||||
}
|
||||
if c.session == nil {
|
||||
fmt.Println("No session found, starting search for", &c)
|
||||
c.core.router.doAdmin(func() {
|
||||
c.startSearch()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue